Final-Bomber  0.1
Bomberman/Dynablaster remake in C# using XNA.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
FBClient.Core.GameManager Class Reference

This class is used to regroup common behaviors between network and local game logic. More...

Inheritance diagram for FBClient.Core.GameManager:
[legend]
Collaboration diagram for FBClient.Core.GameManager:
[legend]

Public Member Functions

void Initialize ()
 
override void Reset ()
 
void LoadContent ()
 
void Update (GameTime gameTime)
 
void Draw (GameTime gameTime, Camera2D camera)
 
void AddPlayer (Player player)
 
void RemovePlayer (Player player)
 
override void AddWall (Point position)
 
void AddWall (Wall wall)
 
void AddWalls (IEnumerable< Point > wallPositions)
 
void AddBomb (Bomb bomb)
 
override void AddPowerUp (Point position)
 
void AddPowerUp (PowerUpType type, Point position)
 
- Public Member Functions inherited from FBLibrary.Core.BaseGameManager
virtual void Update ()
 
virtual void LoadMap (string mapName)
 
void GenerateRandomWalls (int wallPercentage=-1)
 
void DisplayHazardMap ()
 

Public Attributes

readonly PlayerCollection Players
 
readonly List< BombBombList
 
- Public Attributes inherited from FBLibrary.Core.BaseGameManager
int[,] HazardMap
 

Protected Member Functions

 GameManager ()
 
override void UpdateWalls ()
 
override void UpdateBombs ()
 
override void UpdatePowerUps ()
 
override void UpdatePlayers ()
 
override void DestroyPlayer (int playerId)
 
override void DestroyWall (Point position)
 
virtual void RemoveWall (Wall wall)
 
override void DestroyBomb (Point position)
 
override void PickUpPowerUp (BasePlayer player, BasePowerUp powerUp)
 
override void DestroyPowerUp (Point position)
 
- Protected Member Functions inherited from FBLibrary.Core.BaseGameManager
 BaseGameManager ()
 
virtual void AddPlayer (BasePlayer player)
 
virtual void DestroyPlayer (BasePlayer basePlayer)
 
virtual void RemovePlayer (BasePlayer player)
 
virtual void AddWall (BaseWall baseWall)
 
virtual void DestroyWall (BaseWall baseWall)
 
virtual void RemoveWall (BaseWall wall)
 
virtual void AddBomb (BaseBomb bomb)
 
virtual void DestroyBomb (BaseBomb baseBomb)
 
virtual void RemoveBomb (BaseBomb bomb)
 
virtual void AddPowerUp (BasePowerUp basePowerUp)
 
virtual void DestroyPowerUp (BasePowerUp basePowerUp)
 
virtual void RemovePowerUp (BasePowerUp basePowerUp)
 

Protected Attributes

readonly List< PowerUpPowerUpList
 
readonly List< WallWallList
 
GameTime GameTime
 
- Protected Attributes inherited from FBLibrary.Core.BaseGameManager
BaseMap BaseCurrentMap
 
readonly List< BasePlayerBasePlayerList
 

Properties

Map CurrentMap [get]
 
TimeSpan GameTimer [get]
 

Detailed Description

This class is used to regroup common behaviors between network and local game logic.

Definition at line 17 of file GameManager.cs.

Constructor & Destructor Documentation

FBClient.Core.GameManager.GameManager ( )
protected

Definition at line 58 of file GameManager.cs.

Member Function Documentation

void FBClient.Core.GameManager.AddBomb ( Bomb  bomb)

Definition at line 291 of file GameManager.cs.

void FBClient.Core.GameManager.AddPlayer ( Player  player)

Definition at line 225 of file GameManager.cs.

override void FBClient.Core.GameManager.AddPowerUp ( Point  position)
virtual

Implements FBLibrary.Core.BaseGameManager.

Definition at line 316 of file GameManager.cs.

void FBClient.Core.GameManager.AddPowerUp ( PowerUpType  type,
Point  position 
)

Definition at line 324 of file GameManager.cs.

override void FBClient.Core.GameManager.AddWall ( Point  position)
virtual

Implements FBLibrary.Core.BaseGameManager.

Definition at line 250 of file GameManager.cs.

void FBClient.Core.GameManager.AddWall ( Wall  wall)

Definition at line 258 of file GameManager.cs.

void FBClient.Core.GameManager.AddWalls ( IEnumerable< Point >  wallPositions)

Definition at line 265 of file GameManager.cs.

override void FBClient.Core.GameManager.DestroyBomb ( Point  position)
protectedvirtual

Implements FBLibrary.Core.BaseGameManager.

Definition at line 298 of file GameManager.cs.

override void FBClient.Core.GameManager.DestroyPlayer ( int  playerId)
protectedvirtual

Implements FBLibrary.Core.BaseGameManager.

Definition at line 232 of file GameManager.cs.

override void FBClient.Core.GameManager.DestroyPowerUp ( Point  position)
protectedvirtual

Implements FBLibrary.Core.BaseGameManager.

Definition at line 340 of file GameManager.cs.

override void FBClient.Core.GameManager.DestroyWall ( Point  position)
protectedvirtual

Implements FBLibrary.Core.BaseGameManager.

Definition at line 273 of file GameManager.cs.

void FBClient.Core.GameManager.Draw ( GameTime  gameTime,
Camera2D  camera 
)

Definition at line 201 of file GameManager.cs.

void FBClient.Core.GameManager.Initialize ( )

Definition at line 74 of file GameManager.cs.

void FBClient.Core.GameManager.LoadContent ( )

Definition at line 103 of file GameManager.cs.

override void FBClient.Core.GameManager.PickUpPowerUp ( BasePlayer  player,
BasePowerUp  powerUp 
)
protectedvirtual

Implements FBLibrary.Core.BaseGameManager.

Definition at line 332 of file GameManager.cs.

void FBClient.Core.GameManager.RemovePlayer ( Player  player)

Definition at line 239 of file GameManager.cs.

virtual void FBClient.Core.GameManager.RemoveWall ( Wall  wall)
protectedvirtual

Reimplemented in FBClient.Core.LocalGameManager.

Definition at line 280 of file GameManager.cs.

override void FBClient.Core.GameManager.Reset ( )
virtual

Reimplemented from FBLibrary.Core.BaseGameManager.

Definition at line 88 of file GameManager.cs.

void FBClient.Core.GameManager.Update ( GameTime  gameTime)

Definition at line 112 of file GameManager.cs.

override void FBClient.Core.GameManager.UpdateBombs ( )
protectedvirtual

Reimplemented from FBLibrary.Core.BaseGameManager.

Definition at line 138 of file GameManager.cs.

override void FBClient.Core.GameManager.UpdatePlayers ( )
protectedvirtual

Reimplemented from FBLibrary.Core.BaseGameManager.

Definition at line 168 of file GameManager.cs.

override void FBClient.Core.GameManager.UpdatePowerUps ( )
protectedvirtual

Reimplemented from FBLibrary.Core.BaseGameManager.

Definition at line 153 of file GameManager.cs.

override void FBClient.Core.GameManager.UpdateWalls ( )
protectedvirtual

Reimplemented from FBLibrary.Core.BaseGameManager.

Definition at line 122 of file GameManager.cs.

Member Data Documentation

readonly List<Bomb> FBClient.Core.GameManager.BombList

Definition at line 25 of file GameManager.cs.

GameTime FBClient.Core.GameManager.GameTime
protected

Definition at line 39 of file GameManager.cs.

readonly PlayerCollection FBClient.Core.GameManager.Players

Definition at line 22 of file GameManager.cs.

readonly List<PowerUp> FBClient.Core.GameManager.PowerUpList
protected

Definition at line 26 of file GameManager.cs.

readonly List<Wall> FBClient.Core.GameManager.WallList
protected

Definition at line 27 of file GameManager.cs.

Property Documentation

Map FBClient.Core.GameManager.CurrentMap
get

Definition at line 47 of file GameManager.cs.

TimeSpan FBClient.Core.GameManager.GameTimer
get

Definition at line 52 of file GameManager.cs.


The documentation for this class was generated from the following file: