C# Class FBClient.Network.NetworkManager

Exibir arquivo Open project: Noxalus/Final-Bomber Class Usage Examples

Public Properties

Property Type Description
IsConnected bool
IsReady bool
PublicIp string

Public Methods

Method Description
Dispose ( ) : void
GameServer_PlacingBomb ( int clientId, Point position ) : void
Initiliaze ( ) : void
NetworkManager ( ) : System
Update ( ) : void

Protected Methods

Method Description
OnAddClient ( object sender, EventArgs e ) : void
OnAddPlayer ( object sender, EventArgs e ) : void

Private Methods

Method Description
GameServer_BombExploded ( Point position ) : void
GameServer_MovePlayer ( object sender, MovePlayerArgs arg ) : void
GameServer_NewClient ( int clientId, string username, bool isReady ) : void
GameServer_PlayerKilled ( int victimId, int killerId ) : void
GameServer_PlayerSuicide ( int suicidalId ) : void
GameServer_PowerUpDrop ( PowerUpType type, Point position ) : void
GameServer_PowerUpPickUp ( int playerId, Point position, PowerUpType type ) : void
GameServer_UpdatePing ( float ping ) : void
GetMyIpAddress ( ) : string
GetPublicIP ( ) : string

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GameServer_PlacingBomb() public method

public GameServer_PlacingBomb ( int clientId, Point position ) : void
clientId int
position Point
return void

Initiliaze() public method

public Initiliaze ( ) : void
return void

NetworkManager() public method

public NetworkManager ( ) : System
return System

OnAddClient() protected method

protected OnAddClient ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnAddPlayer() protected method

protected OnAddPlayer ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Update() public method

public Update ( ) : void
return void

Property Details

IsConnected public_oe property

public bool IsConnected
return bool

IsReady public_oe property

public bool IsReady
return bool

PublicIp public_oe property

public string PublicIp
return string