C# Class FBClient.Core.GameManager

This class is used to regroup common behaviors between network and local game logic.
Inheritance: FBLibrary.Core.BaseGameManager
Mostra file Open project: Noxalus/Final-Bomber Class Usage Examples

Public Properties

Property Type Description
BombList List
Camera Camera2D
Players PlayerCollection
PowerUpList List

Protected Properties

Property Type Description
WallList List

Public Methods

Method Description
AddBomb ( Bomb bomb ) : void
AddPlayer ( Player player ) : void
AddPowerUp ( Point position ) : void
AddPowerUp ( PowerUpType type, Point position ) : void
AddWall ( Point position ) : void
AddWalls ( IEnumerable wallPositions ) : void
Dispose ( ) : void
Draw ( GameTime gameTime, Camera2D camera ) : void
Initialize ( ) : void
LoadContent ( ) : void
PickUpPowerUp ( BasePlayer player, BasePowerUp powerUp ) : void
PlayerDeathAction ( BasePlayer sender, EventArgs args ) : void
RoundEndAction ( ) : void
Update ( ) : void

Protected Methods

Method Description
DestroyBomb ( Point position ) : void
DestroyPlayer ( int playerId ) : void
DestroyPowerUp ( Point position ) : void
DestroyWall ( Point position ) : void
GameManager ( ) : System
RemoveWall ( Wall wall ) : void
Reset ( ) : void
UpdateBombs ( ) : void
UpdatePlayers ( ) : void
UpdatePowerUps ( ) : void
UpdateWalls ( ) : void

Private Methods

Method Description
RemoveBomb ( Bomb bomb ) : void
RemovePowerUp ( PowerUp powerUp ) : void

Method Details

AddBomb() public method

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

AddPlayer() public method

public AddPlayer ( Player player ) : void
player Player
return void

AddPowerUp() public method

public AddPowerUp ( Point position ) : void
position Point
return void

AddPowerUp() public method

public AddPowerUp ( PowerUpType type, Point position ) : void
type PowerUpType
position Point
return void

AddWall() public method

public AddWall ( Point position ) : void
position Point
return void

AddWalls() public method

public AddWalls ( IEnumerable wallPositions ) : void
wallPositions IEnumerable
return void

DestroyBomb() protected method

protected DestroyBomb ( Point position ) : void
position Point
return void

DestroyPlayer() protected method

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

DestroyPowerUp() protected method

protected DestroyPowerUp ( Point position ) : void
position Point
return void

DestroyWall() protected method

protected DestroyWall ( Point position ) : void
position Point
return void

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( GameTime gameTime, Camera2D camera ) : void
gameTime Microsoft.Xna.Framework.GameTime
camera Camera2D
return void

GameManager() protected method

protected GameManager ( ) : System
return System

Initialize() public method

public Initialize ( ) : void
return void

LoadContent() public method

public LoadContent ( ) : void
return void

PickUpPowerUp() public method

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

PlayerDeathAction() public method

public PlayerDeathAction ( BasePlayer sender, EventArgs args ) : void
sender BasePlayer
args System.EventArgs
return void

RemoveWall() protected method

protected RemoveWall ( Wall wall ) : void
wall FBClient.Core.Entities.Wall
return void

Reset() protected method

protected Reset ( ) : void
return void

RoundEndAction() public method

public RoundEndAction ( ) : void
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

Property Details

BombList public_oe property

public List BombList
return List

Camera public_oe property

public Camera2D Camera
return Camera2D

Players public_oe property

public PlayerCollection Players
return PlayerCollection

PowerUpList public_oe property

public List PowerUpList
return List

WallList protected_oe property

protected List WallList
return List