C# Class MyGame.StateManager

Show file Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Public Methods

Method 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

Method Description
Draw ( String text ) : void

This method renders the current state.

Method Details

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

StateManager() public method

public StateManager ( MyGame game ) : System
game MyGame
return System

Update() public method

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

addEvent() public method

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