C# Class Californium.State

显示文件 Open project: DatZach/HumanityAgainstCards Class Usage Examples

Public Properties

Property Type Description
Camera Camera
Entities EntityManager
Map TileMap

Public Methods

Method Description
Draw ( RenderTarget rt ) : void

Called once per frame, right after Update. Avoid putting game login in here.

Enter ( ) : void

Called when a State is added to the game. InitializeCamera is called here by default.

InitializeCamera ( ) : void

Called when the State's Camera needs to be (re)initialized.

Leave ( ) : void

Called when a State is removed from the game.

ProcessEvent ( InputArgs args ) : bool
Update ( ) : void

Update is called once every Timestep. Game logic should be handled here (movement, animations, etc).

Protected Methods

Method Description
State ( ) : System

Private Methods

Method Description
UpdateInternal ( ) : void

Method Details

Draw() public method

Called once per frame, right after Update. Avoid putting game login in here.
public Draw ( RenderTarget rt ) : void
rt RenderTarget
return void

Enter() public method

Called when a State is added to the game. InitializeCamera is called here by default.
public Enter ( ) : void
return void

InitializeCamera() public method

Called when the State's Camera needs to be (re)initialized.
public InitializeCamera ( ) : void
return void

Leave() public method

Called when a State is removed from the game.
public Leave ( ) : void
return void

ProcessEvent() public method

public ProcessEvent ( InputArgs args ) : bool
args InputArgs
return bool

State() protected method

protected State ( ) : System
return System

Update() public method

Update is called once every Timestep. Game logic should be handled here (movement, animations, etc).
public Update ( ) : void
return void

Property Details

Camera public_oe property

public Camera,Californium Camera
return Camera

Entities public_oe property

public EntityManager Entities
return EntityManager

Map public_oe property

public TileMap,Californium Map
return TileMap