C# Class MegaMan.Engine.Entities.GameEntityPool

Inheritance: IEntityPool
ファイルを表示 Open project: Tesserex/C--MegaMan-Engine Class Usage Examples

Public Methods

Method Description
CreateEntity ( string name ) : GameEntity
CreateEntityWithId ( string id, string name ) : GameEntity
GameEntityPool ( IEntitySource entitySource ) : System
GetAll ( ) : IEnumerable
GetEntityById ( string id ) : GameEntity
GetNumberAlive ( string name ) : int
GetTotalAlive ( ) : int
RemoveAll ( ) : void
UnloadAll ( ) : void

Private Methods

Method Description
BindEntityEventRegistration ( string id, GameEntity entity ) : void
RemoveEntity ( string id, GameEntity entity ) : void

Method Details

CreateEntity() public method

public CreateEntity ( string name ) : GameEntity
name string
return GameEntity

CreateEntityWithId() public method

public CreateEntityWithId ( string id, string name ) : GameEntity
id string
name string
return GameEntity

GameEntityPool() public method

public GameEntityPool ( IEntitySource entitySource ) : System
entitySource IEntitySource
return System

GetAll() public method

public GetAll ( ) : IEnumerable
return IEnumerable

GetEntityById() public method

public GetEntityById ( string id ) : GameEntity
id string
return GameEntity

GetNumberAlive() public method

public GetNumberAlive ( string name ) : int
name string
return int

GetTotalAlive() public method

public GetTotalAlive ( ) : int
return int

RemoveAll() public method

public RemoveAll ( ) : void
return void

UnloadAll() public method

public UnloadAll ( ) : void
return void