C# 클래스 FBServer.Core.GameManager

상속: FBLibrary.Core.BaseGameManager
파일 보기 프로젝트 열기: Noxalus/Final-Bomber 1 사용 예제들

공개 메소드들

메소드 설명
AddBomb ( Bomb bomb ) : void
AddPlayer ( Client client, Player player ) : void
AddPowerUp ( Point position ) : void
AddWall ( Point position ) : void
AddWall ( Wall wall ) : void
GameManager ( ) : System.Collections.Generic
Initialize ( ) : void
KillPlayer ( int victimId, int killerId ) : void
LoadMap ( string mapName ) : void
PickUpPowerUp ( BasePlayer player, BasePowerUp powerUp ) : void
StartGame ( ) : void
SuicidePlayer ( BasePlayer suicidalPlayer ) : void
Update ( ) : void

보호된 메소드들

메소드 설명
DestroyBomb ( Point position ) : void
DestroyPlayer ( int playerId ) : void
DestroyPowerUp ( Point position ) : void
DestroyWall ( Point position ) : void
Reset ( ) : void
UpdateBombs ( ) : void
UpdatePlayers ( ) : void
UpdatePowerUps ( ) : void
UpdateWalls ( ) : void

비공개 메소드들

메소드 설명
CheckRoundEnd ( ) : void
CheckUsernameAlreadyTaken ( Client client ) : string

Check if the client's username is already taken and provide a new unique username

EndGame ( ) : void
GameInitialize ( ) : void
GetClientFromId ( int clientId ) : Client
GetClientFromPlayer ( BasePlayer player ) : Client
MovePlayers ( ) : void
RemoveBomb ( Bomb bomb ) : void
RemovePowerUp ( PowerUp powerUp ) : void
RemoveWall ( Wall wall ) : void
RunGameLogic ( ) : void

메소드 상세

AddBomb() 공개 메소드

public AddBomb ( Bomb bomb ) : void
bomb FBServer.Core.Entities.Bomb
리턴 void

AddPlayer() 공개 메소드

public AddPlayer ( Client client, Player player ) : void
client FBServer.Host.Client
player Player
리턴 void

AddPowerUp() 공개 메소드

public AddPowerUp ( Point position ) : void
position Microsoft.Xna.Framework.Point
리턴 void

AddWall() 공개 메소드

public AddWall ( Point position ) : void
position Microsoft.Xna.Framework.Point
리턴 void

AddWall() 공개 메소드

public AddWall ( Wall wall ) : void
wall FBServer.Core.Entities.Wall
리턴 void

DestroyBomb() 보호된 메소드

protected DestroyBomb ( Point position ) : void
position Microsoft.Xna.Framework.Point
리턴 void

DestroyPlayer() 보호된 메소드

protected DestroyPlayer ( int playerId ) : void
playerId int
리턴 void

DestroyPowerUp() 보호된 메소드

protected DestroyPowerUp ( Point position ) : void
position Microsoft.Xna.Framework.Point
리턴 void

DestroyWall() 보호된 메소드

protected DestroyWall ( Point position ) : void
position Microsoft.Xna.Framework.Point
리턴 void

GameManager() 공개 메소드

public GameManager ( ) : System.Collections.Generic
리턴 System.Collections.Generic

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 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 PickUpPowerUp ( BasePlayer player, BasePowerUp powerUp ) : void
player BasePlayer
powerUp FBLibrary.Core.BaseEntities.BasePowerUp
리턴 void

Reset() 보호된 메소드

protected Reset ( ) : void
리턴 void

StartGame() 공개 메소드

public StartGame ( ) : void
리턴 void

SuicidePlayer() 공개 메소드

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