C# Class StarWarrior.StarWarriorGame

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

Public Methods

Method Description
StarWarriorGame ( ) : System

Initializes a new instance of the StarWarriorGame class.

Protected Methods

Method 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

Method Description
InitializeEnemyShips ( ) : void

The initialize enemy ships.

InitializePlayerShip ( ) : void

The initialize player ship.

Method Details

Draw() protected method

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.
return void

Initialize() protected method

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
return void

StarWarriorGame() public method

Initializes a new instance of the StarWarriorGame class.
public StarWarriorGame ( ) : System
return System

Update() protected method

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.
return void