C# Class StarWarrior.StarWarriorGame

This is the main type for Star Warrior.
Inheritance: Microsoft.Xna.Framework.Game
Afficher le fichier Open project: thelinuxlich/starwarrior_CSharp

Méthodes publiques

Méthode Description
StarWarriorGame ( ) : System

Initializes a new instance of the StarWarriorGame class.

Méthodes protégées

Méthode Description
Draw ( GameTime gameTime ) : void

This is called when the game should draw itself.

Initialize ( ) : void

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.

Update ( GameTime gameTime ) : void

Allows the game to run logic such as updating the entityWorld, checking for collisions, gathering input, and playing audio.

Private Methods

Méthode Description
InitializeEnemyShips ( ) : void

The initialize enemy ships.

InitializePlayerShip ( ) : void

The initialize player ship.

Method Details

Draw() protected méthode

This is called when the game should draw itself.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Résultat void

Initialize() protected méthode

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
protected Initialize ( ) : void
Résultat void

StarWarriorGame() public méthode

Initializes a new instance of the StarWarriorGame class.
public StarWarriorGame ( ) : System
Résultat System

Update() protected méthode

Allows the game to run logic such as updating the entityWorld, checking for collisions, gathering input, and playing audio.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Résultat void