C# Class MyGame.ScoreBoard

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

Méthodes publiques

Свойство Type Description
score int

Protected Properties

Свойство Type Description
events List

Méthodes publiques

Méthode 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 méthode

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

ScoreBoard() public méthode

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

Property Details

events protected_oe property

protected List events
Résultat List

score public_oe property

public int score
Résultat int