C# Class FBServer.Core.GameManager

Inheritance: FBLibrary.Core.BaseGameManager
Exibir arquivo Open project: Noxalus/Final-Bomber Class Usage Examples

Public Methods

Method Description
AddBomb ( Bomb bomb ) : void
AddPlayer ( Client client, Player player ) : void
AddPowerUp ( Point position ) : void
AddWall ( Point position ) : void
AddWall ( Wall wall ) : void
GameManager ( ) : System.Collections.Generic
Initialize ( ) : void
KillPlayer ( int victimId, int killerId ) : void
LoadMap ( string mapName ) : void
PickUpPowerUp ( BasePlayer player, BasePowerUp powerUp ) : void
StartGame ( ) : void
SuicidePlayer ( BasePlayer suicidalPlayer ) : void
Update ( ) : void

Protected Methods

Method Description
DestroyBomb ( Point position ) : void
DestroyPlayer ( int playerId ) : void
DestroyPowerUp ( Point position ) : void
DestroyWall ( Point position ) : void
Reset ( ) : void
UpdateBombs ( ) : void
UpdatePlayers ( ) : void
UpdatePowerUps ( ) : void
UpdateWalls ( ) : void

Private Methods

Method Description
CheckRoundEnd ( ) : void
CheckUsernameAlreadyTaken ( Client client ) : string

Check if the client's username is already taken and provide a new unique username

EndGame ( ) : void
GameInitialize ( ) : void
GetClientFromId ( int clientId ) : Client
GetClientFromPlayer ( BasePlayer player ) : Client
MovePlayers ( ) : void
RemoveBomb ( Bomb bomb ) : void
RemovePowerUp ( PowerUp powerUp ) : void
RemoveWall ( Wall wall ) : void
RunGameLogic ( ) : void

Method Details

AddBomb() public method

public AddBomb ( Bomb bomb ) : void
bomb FBServer.Core.Entities.Bomb
return void

AddPlayer() public method

public AddPlayer ( Client client, Player player ) : void
client FBServer.Host.Client
player Player
return void

AddPowerUp() public method

public AddPowerUp ( Point position ) : void
position Microsoft.Xna.Framework.Point
return void

AddWall() public method

public AddWall ( Point position ) : void
position Microsoft.Xna.Framework.Point
return void

AddWall() public method

public AddWall ( Wall wall ) : void
wall FBServer.Core.Entities.Wall
return void

DestroyBomb() protected method

protected DestroyBomb ( Point position ) : void
position Microsoft.Xna.Framework.Point
return void

DestroyPlayer() protected method

protected DestroyPlayer ( int playerId ) : void
playerId int
return void

DestroyPowerUp() protected method

protected DestroyPowerUp ( Point position ) : void
position Microsoft.Xna.Framework.Point
return void

DestroyWall() protected method

protected DestroyWall ( Point position ) : void
position Microsoft.Xna.Framework.Point
return void

GameManager() public method

public GameManager ( ) : System.Collections.Generic
return System.Collections.Generic

Initialize() public method

public Initialize ( ) : void
return void

KillPlayer() public method

public KillPlayer ( int victimId, int killerId ) : void
victimId int
killerId int
return void

LoadMap() public method

public LoadMap ( string mapName ) : void
mapName string
return void

PickUpPowerUp() public method

public PickUpPowerUp ( BasePlayer player, BasePowerUp powerUp ) : void
player BasePlayer
powerUp FBLibrary.Core.BaseEntities.BasePowerUp
return void

Reset() protected method

protected Reset ( ) : void
return void

StartGame() public method

public StartGame ( ) : void
return void

SuicidePlayer() public method

public SuicidePlayer ( BasePlayer suicidalPlayer ) : void
suicidalPlayer BasePlayer
return void

Update() public method

public Update ( ) : void
return void

UpdateBombs() protected method

protected UpdateBombs ( ) : void
return void

UpdatePlayers() protected method

protected UpdatePlayers ( ) : void
return void

UpdatePowerUps() protected method

protected UpdatePowerUps ( ) : void
return void

UpdateWalls() protected method

protected UpdateWalls ( ) : void
return void