C# 클래스 FBServer.Host.GameServer

파일 보기 프로젝트 열기: Noxalus/Final-Bomber

공개 프로퍼티들

프로퍼티 타입 설명
Clients ClientCollection
SelectedMapName string

공개 메소드들

메소드 설명
EndServer ( string reason ) : void
SendAvailableMaps ( Client client ) : void
SendBombExploded ( Bomb bomb ) : void
SendClientId ( Client client ) : void

Sends the id generate by the server to the corresponding client

SendClientsToNew ( Client client ) : void
SendEnd ( Client client ) : void
SendKillPlayer ( Client victimClient, Client killerClient ) : void
SendNewClientInfo ( Client client ) : void
SendPings ( ) : void
SendPlayerPlacingBomb ( Client client, Point position ) : void
SendPlayerPosition ( Client client, bool notDir, bool exceptHim ) : void
SendPowerUpDrop ( PowerUp powerUp ) : void
SendPowerUpPickUp ( Client client, PowerUp powerUp ) : void
SendRemovePlayer ( Player removedPlayer ) : void
SendRoundEnd ( Client client ) : void
SendSelectedMap ( Client client ) : void
SendStartGame ( bool gameInProgress ) : void
SendSuddenDeath ( ) : void
SendSuicidePlayer ( Client suicidalClient ) : void
StartServer ( ) : void

Start the server

Update ( ) : void

Check for new messages from clients

비공개 메소드들

메소드 설명
CheckNewClientMessages ( ) : void
DataProcessing ( NetIncomingMessage message, Client &client ) : void
GameServer ( ) : System
GetClientInfo ( Client client ) : NetOutgoingMessage
OnBombPlacing ( Client sender ) : void
OnConnectedClient ( Client sender, EventArgs e ) : void

Event raised when a client is connecting

OnDisconnectedClient ( Client sender, EventArgs e ) : void

Event raised when a client is disconnecting

ReceiveBombPlacing ( Client client ) : void
ReceiveCredentials ( Client client, string username, string password ) : void
ReceiveHasMap ( Client client ) : void
ReceiveMapSelection ( Client client, string md5 ) : void
ReceiveMovePlayer ( Client client, LookDirection movement, double ping = null ) : void
ReceiveNeedMap ( Client client ) : void
ReceiveReady ( Client client, bool ready ) : void
ReceiveWantToStartGame ( ) : void
SendCurrentMap ( Client client ) : void
SendGameWillStart ( ) : void
SendIsReady ( Client client, bool ready ) : void
SendPlayersPosition ( bool exceptHim ) : void

메소드 상세

EndServer() 공개 메소드

public EndServer ( string reason ) : void
reason string
리턴 void

SendAvailableMaps() 공개 메소드

public SendAvailableMaps ( Client client ) : void
client Client
리턴 void

SendBombExploded() 공개 메소드

public SendBombExploded ( Bomb bomb ) : void
bomb Bomb
리턴 void

SendClientId() 공개 메소드

Sends the id generate by the server to the corresponding client
public SendClientId ( Client client ) : void
client Client The corresponding client
리턴 void

SendClientsToNew() 공개 메소드

public SendClientsToNew ( Client client ) : void
client Client
리턴 void

SendEnd() 공개 메소드

public SendEnd ( Client client ) : void
client Client
리턴 void

SendKillPlayer() 공개 메소드

public SendKillPlayer ( Client victimClient, Client killerClient ) : void
victimClient Client
killerClient Client
리턴 void

SendNewClientInfo() 공개 메소드

public SendNewClientInfo ( Client client ) : void
client Client
리턴 void

SendPings() 공개 메소드

public SendPings ( ) : void
리턴 void

SendPlayerPlacingBomb() 공개 메소드

public SendPlayerPlacingBomb ( Client client, Point position ) : void
client Client
position Point
리턴 void

SendPlayerPosition() 공개 메소드

public SendPlayerPosition ( Client client, bool notDir, bool exceptHim ) : void
client Client
notDir bool
exceptHim bool
리턴 void

SendPowerUpDrop() 공개 메소드

public SendPowerUpDrop ( PowerUp powerUp ) : void
powerUp PowerUp
리턴 void

SendPowerUpPickUp() 공개 메소드

public SendPowerUpPickUp ( Client client, PowerUp powerUp ) : void
client Client
powerUp PowerUp
리턴 void

SendRemovePlayer() 공개 메소드

public SendRemovePlayer ( Player removedPlayer ) : void
removedPlayer Player
리턴 void

SendRoundEnd() 공개 메소드

public SendRoundEnd ( Client client ) : void
client Client
리턴 void

SendSelectedMap() 공개 메소드

public SendSelectedMap ( Client client ) : void
client Client
리턴 void

SendStartGame() 공개 메소드

public SendStartGame ( bool gameInProgress ) : void
gameInProgress bool
리턴 void

SendSuddenDeath() 공개 메소드

public SendSuddenDeath ( ) : void
리턴 void

SendSuicidePlayer() 공개 메소드

public SendSuicidePlayer ( Client suicidalClient ) : void
suicidalClient Client
리턴 void

StartServer() 공개 메소드

Start the server
public StartServer ( ) : void
리턴 void

Update() 공개 메소드

Check for new messages from clients
public Update ( ) : void
리턴 void

프로퍼티 상세

Clients 공개적으로 프로퍼티

public ClientCollection Clients
리턴 ClientCollection

SelectedMapName 공개적으로 프로퍼티

public string SelectedMapName
리턴 string