C# Class FBLibrary.Core.BaseGameManager

Show file Open project: Noxalus/Final-Bomber

Public Properties

Property Type Description
GameEventManager BaseGameEventManager
HazardMap ].int[

Protected Properties

Property Type Description
BaseCurrentMap FBLibrary.Core.BaseEntities.BaseMap
WaitServerResponse bool

Public Methods

Method Description
AddPowerUp ( Point position ) : void
AddWall ( Point position ) : void
DisplayHazardMap ( ) : void
GenerateRandomWalls ( int wallPercentage = -1 ) : void
KillPlayer ( int victimId, int killerId ) : void
LoadMap ( string mapName ) : void
PickUpPowerUp ( BasePlayer player, BasePowerUp powerUp ) : void
SuicidePlayer ( BasePlayer player ) : void
Update ( ) : void

Protected Methods

Method Description
AddBomb ( BaseBomb bomb ) : void
AddPlayer ( BasePlayer player ) : void
AddPowerUp ( BasePowerUp basePowerUp ) : void
AddWall ( BaseWall baseWall ) : void
BaseGameManager ( ) : System
DestroyBomb ( BaseBomb baseBomb ) : void
DestroyBomb ( Point position ) : void
DestroyPlayer ( BasePlayer basePlayer ) : void
DestroyPlayer ( int playerId ) : void
DestroyPowerUp ( BasePowerUp basePowerUp ) : void
DestroyPowerUp ( Point position ) : void
DestroyWall ( BaseWall baseWall ) : void
DestroyWall ( Point position ) : void
RemoveBomb ( BaseBomb bomb ) : void
RemovePowerUp ( BasePowerUp basePowerUp ) : void
RemoveWall ( BaseWall wall ) : void
Reset ( ) : void
UpdateBombs ( ) : void
UpdatePlayers ( ) : void
UpdatePowerUps ( ) : void
UpdateWalls ( ) : void

Private Methods

Method Description
GetPlayerById ( int id ) : BasePlayer
NearPlayerSpawn ( int x, int y ) : bool

Method Details

AddBomb() protected method

protected AddBomb ( BaseBomb bomb ) : void
bomb FBLibrary.Core.BaseEntities.BaseBomb
return void

AddPlayer() protected method

protected AddPlayer ( BasePlayer player ) : void
player BasePlayer
return void

AddPowerUp() protected method

protected AddPowerUp ( BasePowerUp basePowerUp ) : void
basePowerUp FBLibrary.Core.BaseEntities.BasePowerUp
return void

AddPowerUp() public abstract method

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

AddWall() protected method

protected AddWall ( BaseWall baseWall ) : void
baseWall FBLibrary.Core.BaseEntities.BaseWall
return void

AddWall() public abstract method

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

BaseGameManager() protected method

protected BaseGameManager ( ) : System
return System

DestroyBomb() protected method

protected DestroyBomb ( BaseBomb baseBomb ) : void
baseBomb FBLibrary.Core.BaseEntities.BaseBomb
return void

DestroyBomb() protected abstract method

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

DestroyPlayer() protected method

protected DestroyPlayer ( BasePlayer basePlayer ) : void
basePlayer BasePlayer
return void

DestroyPlayer() protected abstract method

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

DestroyPowerUp() protected method

protected DestroyPowerUp ( BasePowerUp basePowerUp ) : void
basePowerUp FBLibrary.Core.BaseEntities.BasePowerUp
return void

DestroyPowerUp() protected abstract method

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

DestroyWall() protected method

protected DestroyWall ( BaseWall baseWall ) : void
baseWall FBLibrary.Core.BaseEntities.BaseWall
return void

DestroyWall() protected abstract method

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

DisplayHazardMap() public method

public DisplayHazardMap ( ) : void
return void

GenerateRandomWalls() public method

public GenerateRandomWalls ( int wallPercentage = -1 ) : void
wallPercentage int
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 abstract method

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

RemoveBomb() protected method

protected RemoveBomb ( BaseBomb bomb ) : void
bomb FBLibrary.Core.BaseEntities.BaseBomb
return void

RemovePowerUp() protected method

protected RemovePowerUp ( BasePowerUp basePowerUp ) : void
basePowerUp FBLibrary.Core.BaseEntities.BasePowerUp
return void

RemoveWall() protected method

protected RemoveWall ( BaseWall wall ) : void
wall FBLibrary.Core.BaseEntities.BaseWall
return void

Reset() protected method

protected Reset ( ) : void
return void

SuicidePlayer() public method

public SuicidePlayer ( BasePlayer player ) : void
player 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

Property Details

BaseCurrentMap protected property

protected BaseMap,FBLibrary.Core.BaseEntities BaseCurrentMap
return FBLibrary.Core.BaseEntities.BaseMap

GameEventManager public property

public BaseGameEventManager,FBLibrary.Core GameEventManager
return BaseGameEventManager

HazardMap public property

public int[,] HazardMap
return ].int[

WaitServerResponse protected property

protected bool WaitServerResponse
return bool