C# Class MyGame.StateManager

Afficher le fichier Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime ) : void
StateManager ( MyGame game ) : System
Update ( GameTime gameTime ) : void

Allows the game component to update itself.

addEvent ( MyGame.Event ev ) : void

Add event to the event queue

Private Methods

Méthode Description
Draw ( String text ) : void

This method renders the current state.

Method Details

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

StateManager() public méthode

public StateManager ( MyGame game ) : System
game MyGame
Résultat System

Update() public méthode

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Résultat void

addEvent() public méthode

Add event to the event queue
public addEvent ( MyGame.Event ev ) : void
ev MyGame.Event Event to be added
Résultat void