C# Class FBClient.Core.GameManager

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

Méthodes publiques

Свойство Type Description
BombList List
Camera Camera2D
Players PlayerCollection
PowerUpList List

Protected Properties

Свойство Type Description
WallList List

Méthodes publiques

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

Méthodes protégées

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

Méthode Description
RemoveBomb ( Bomb bomb ) : void
RemovePowerUp ( PowerUp powerUp ) : void

Method Details

AddBomb() public méthode

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

AddPlayer() public méthode

public AddPlayer ( Player player ) : void
player Player
Résultat void

AddPowerUp() public méthode

public AddPowerUp ( Point position ) : void
position Point
Résultat void

AddPowerUp() public méthode

public AddPowerUp ( PowerUpType type, Point position ) : void
type PowerUpType
position Point
Résultat void

AddWall() public méthode

public AddWall ( Point position ) : void
position Point
Résultat void

AddWalls() public méthode

public AddWalls ( IEnumerable wallPositions ) : void
wallPositions IEnumerable
Résultat void

DestroyBomb() protected méthode

protected DestroyBomb ( Point position ) : void
position 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 Point
Résultat void

DestroyWall() protected méthode

protected DestroyWall ( Point position ) : void
position Point
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Draw() public méthode

public Draw ( GameTime gameTime, Camera2D camera ) : void
gameTime Microsoft.Xna.Framework.GameTime
camera Camera2D
Résultat void

GameManager() protected méthode

protected GameManager ( ) : System
Résultat System

Initialize() public méthode

public Initialize ( ) : void
Résultat void

LoadContent() public méthode

public LoadContent ( ) : void
Résultat void

PickUpPowerUp() public méthode

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

PlayerDeathAction() public méthode

public PlayerDeathAction ( BasePlayer sender, EventArgs args ) : void
sender BasePlayer
args System.EventArgs
Résultat void

RemoveWall() protected méthode

protected RemoveWall ( Wall wall ) : void
wall FBClient.Core.Entities.Wall
Résultat void

Reset() protected méthode

protected Reset ( ) : void
Résultat void

RoundEndAction() public méthode

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

Property Details

BombList public_oe property

public List BombList
Résultat List

Camera public_oe property

public Camera2D Camera
Résultat Camera2D

Players public_oe property

public PlayerCollection Players
Résultat PlayerCollection

PowerUpList public_oe property

public List PowerUpList
Résultat List

WallList protected_oe property

protected List WallList
Résultat List