C# Класс StarWarrior.StarWarriorGame

This is the main type for Star Warrior.
Наследование: Microsoft.Xna.Framework.Game
Показать файл Открыть проект

Открытые методы

Метод Описание
StarWarriorGame ( ) : System

Initializes a new instance of the StarWarriorGame class.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
InitializeEnemyShips ( ) : void

The initialize enemy ships.

InitializePlayerShip ( ) : void

The initialize player ship.

Описание методов

Draw() защищенный Метод

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.
Результат void

Initialize() защищенный Метод

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
Результат void

StarWarriorGame() публичный Метод

Initializes a new instance of the StarWarriorGame class.
public StarWarriorGame ( ) : System
Результат System

Update() защищенный Метод

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.
Результат void