C# Класс FBLibrary.Core.BaseGameManager

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
GameEventManager BaseGameEventManager
HazardMap ].int[

Защищенные свойства (Protected)

Свойство Тип Описание
BaseCurrentMap FBLibrary.Core.BaseEntities.BaseMap
WaitServerResponse bool

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
GetPlayerById ( int id ) : BasePlayer
NearPlayerSpawn ( int x, int y ) : bool

Описание методов

AddBomb() защищенный Метод

protected AddBomb ( BaseBomb bomb ) : void
bomb FBLibrary.Core.BaseEntities.BaseBomb
Результат void

AddPlayer() защищенный Метод

protected AddPlayer ( BasePlayer player ) : void
player BasePlayer
Результат void

AddPowerUp() защищенный Метод

protected AddPowerUp ( BasePowerUp basePowerUp ) : void
basePowerUp FBLibrary.Core.BaseEntities.BasePowerUp
Результат void

AddPowerUp() публичный абстрактный Метод

public abstract AddPowerUp ( Point position ) : void
position Point
Результат void

AddWall() защищенный Метод

protected AddWall ( BaseWall baseWall ) : void
baseWall FBLibrary.Core.BaseEntities.BaseWall
Результат void

AddWall() публичный абстрактный Метод

public abstract AddWall ( Point position ) : void
position Point
Результат void

BaseGameManager() защищенный Метод

protected BaseGameManager ( ) : System
Результат System

DestroyBomb() защищенный Метод

protected DestroyBomb ( BaseBomb baseBomb ) : void
baseBomb FBLibrary.Core.BaseEntities.BaseBomb
Результат void

DestroyBomb() защищенный абстрактный Метод

protected abstract DestroyBomb ( Point position ) : void
position Point
Результат void

DestroyPlayer() защищенный Метод

protected DestroyPlayer ( BasePlayer basePlayer ) : void
basePlayer BasePlayer
Результат void

DestroyPlayer() защищенный абстрактный Метод

protected abstract DestroyPlayer ( int playerId ) : void
playerId int
Результат void

DestroyPowerUp() защищенный Метод

protected DestroyPowerUp ( BasePowerUp basePowerUp ) : void
basePowerUp FBLibrary.Core.BaseEntities.BasePowerUp
Результат void

DestroyPowerUp() защищенный абстрактный Метод

protected abstract DestroyPowerUp ( Point position ) : void
position Point
Результат void

DestroyWall() защищенный Метод

protected DestroyWall ( BaseWall baseWall ) : void
baseWall FBLibrary.Core.BaseEntities.BaseWall
Результат void

DestroyWall() защищенный абстрактный Метод

protected abstract DestroyWall ( Point position ) : void
position Point
Результат void

DisplayHazardMap() публичный Метод

public DisplayHazardMap ( ) : void
Результат void

GenerateRandomWalls() публичный Метод

public GenerateRandomWalls ( int wallPercentage = -1 ) : void
wallPercentage int
Результат void

KillPlayer() публичный Метод

public KillPlayer ( int victimId, int killerId ) : void
victimId int
killerId int
Результат void

LoadMap() публичный Метод

public LoadMap ( string mapName ) : void
mapName string
Результат void

PickUpPowerUp() публичный абстрактный Метод

public abstract PickUpPowerUp ( BasePlayer player, BasePowerUp powerUp ) : void
player BasePlayer
powerUp FBLibrary.Core.BaseEntities.BasePowerUp
Результат void

RemoveBomb() защищенный Метод

protected RemoveBomb ( BaseBomb bomb ) : void
bomb FBLibrary.Core.BaseEntities.BaseBomb
Результат void

RemovePowerUp() защищенный Метод

protected RemovePowerUp ( BasePowerUp basePowerUp ) : void
basePowerUp FBLibrary.Core.BaseEntities.BasePowerUp
Результат void

RemoveWall() защищенный Метод

protected RemoveWall ( BaseWall wall ) : void
wall FBLibrary.Core.BaseEntities.BaseWall
Результат void

Reset() защищенный Метод

protected Reset ( ) : void
Результат void

SuicidePlayer() публичный Метод

public SuicidePlayer ( BasePlayer player ) : void
player BasePlayer
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

UpdateBombs() защищенный Метод

protected UpdateBombs ( ) : void
Результат void

UpdatePlayers() защищенный Метод

protected UpdatePlayers ( ) : void
Результат void

UpdatePowerUps() защищенный Метод

protected UpdatePowerUps ( ) : void
Результат void

UpdateWalls() защищенный Метод

protected UpdateWalls ( ) : void
Результат void

Описание свойств

BaseCurrentMap защищенное свойство

protected BaseMap,FBLibrary.Core.BaseEntities BaseCurrentMap
Результат FBLibrary.Core.BaseEntities.BaseMap

GameEventManager публичное свойство

public BaseGameEventManager,FBLibrary.Core GameEventManager
Результат BaseGameEventManager

HazardMap публичное свойство

public int[,] HazardMap
Результат ].int[

WaitServerResponse защищенное свойство

protected bool WaitServerResponse
Результат bool