C# Class MyGame.ScoreBoard

This is a game component that implements IUpdateable.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent, IEvent
Show file Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Public Properties

Property Type Description
score int

Protected Properties

Property Type Description
events List

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

This method renders the current state.

ScoreBoard ( MyGame game ) : System
Update ( GameTime gameTime ) : void

Allows the game component to update itself.

addEvent ( Event ev ) : void

Add event to the event queue

Method Details

Draw() public method

This method renders the current state.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The elapsed game time.
return void

ScoreBoard() public method

public ScoreBoard ( 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 ( Event ev ) : void
ev Event Event to be added
return void

Property Details

events protected property

protected List events
return List

score public property

public int score
return int