C# Class FBServer.Core.GameManager

Inheritance: FBLibrary.Core.BaseGameManager
Afficher le fichier Open project: Noxalus/Final-Bomber Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public AddBomb ( Bomb bomb ) : void
bomb FBServer.Core.Entities.Bomb
Résultat void

AddPlayer() public méthode

public AddPlayer ( Client client, Player player ) : void
client FBServer.Host.Client
player Player
Résultat void

AddPowerUp() public méthode

public AddPowerUp ( Point position ) : void
position Microsoft.Xna.Framework.Point
Résultat void

AddWall() public méthode

public AddWall ( Point position ) : void
position Microsoft.Xna.Framework.Point
Résultat void

AddWall() public méthode

public AddWall ( Wall wall ) : void
wall FBServer.Core.Entities.Wall
Résultat void

DestroyBomb() protected méthode

protected DestroyBomb ( Point position ) : void
position Microsoft.Xna.Framework.Point
Résultat void

DestroyPlayer() protected méthode

protected DestroyPlayer ( int playerId ) : void
playerId int
Résultat void

DestroyPowerUp() protected méthode

protected DestroyPowerUp ( Point position ) : void
position Microsoft.Xna.Framework.Point
Résultat void

DestroyWall() protected méthode

protected DestroyWall ( Point position ) : void
position Microsoft.Xna.Framework.Point
Résultat void

GameManager() public méthode

public GameManager ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Initialize() public méthode

public Initialize ( ) : void
Résultat void

KillPlayer() public méthode

public KillPlayer ( int victimId, int killerId ) : void
victimId int
killerId int
Résultat void

LoadMap() public méthode

public LoadMap ( string mapName ) : void
mapName string
Résultat void

PickUpPowerUp() public méthode

public PickUpPowerUp ( BasePlayer player, BasePowerUp powerUp ) : void
player BasePlayer
powerUp FBLibrary.Core.BaseEntities.BasePowerUp
Résultat void

Reset() protected méthode

protected Reset ( ) : void
Résultat void

StartGame() public méthode

public StartGame ( ) : void
Résultat void

SuicidePlayer() public méthode

public SuicidePlayer ( BasePlayer suicidalPlayer ) : void
suicidalPlayer BasePlayer
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

UpdateBombs() protected méthode

protected UpdateBombs ( ) : void
Résultat void

UpdatePlayers() protected méthode

protected UpdatePlayers ( ) : void
Résultat void

UpdatePowerUps() protected méthode

protected UpdatePowerUps ( ) : void
Résultat void

UpdateWalls() protected méthode

protected UpdateWalls ( ) : void
Résultat void