C# Class Californium.State

Afficher le fichier Open project: DatZach/HumanityAgainstCards Class Usage Examples

Méthodes publiques

Свойство Type Description
Camera Camera
Entities EntityManager
Map TileMap

Méthodes publiques

Méthode 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).

Méthodes protégées

Méthode Description
State ( ) : System

Private Methods

Méthode Description
UpdateInternal ( ) : void

Method Details

Draw() public méthode

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

Enter() public méthode

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

InitializeCamera() public méthode

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

Leave() public méthode

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

ProcessEvent() public méthode

public ProcessEvent ( InputArgs args ) : bool
args InputArgs
Résultat bool

State() protected méthode

protected State ( ) : System
Résultat System

Update() public méthode

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

Property Details

Camera public_oe property

public Camera,Californium Camera
Résultat Camera

Entities public_oe property

public EntityManager Entities
Résultat EntityManager

Map public_oe property

public TileMap,Californium Map
Résultat TileMap