C# Класс Project_Starfighter.Starfighter

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

Открытые свойства

Свойство Тип Описание
bookpages Microsoft.Xna.Framework.Graphics.Texture2D
finalScore int
graphics GraphicsDeviceManager
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont

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

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

Starfighter ( Microsoft.Xna.Framework.Game game ) : System

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

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

LoadContent ( ) : void
UnloadContent ( ) : void

UnloadContent will be called once per game and is the place to unload all content.

Update ( GameTime gameTime ) : void

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

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

Метод Описание
CheckKey ( Keys theKey ) : bool
HandleActionScreen ( ) : void

HandleCreditScreen ( ) : void

HandleGameOverScreen ( ) : void
HandleInstructionsScreen ( ) : void

HandleQuitScreen ( ) : void
HandleStartScreen ( ) : void

HandleVictoryScreen ( ) : void

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

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

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

protected LoadContent ( ) : void
Результат void

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

public Starfighter ( ) : System
Результат System

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

public Starfighter ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
Результат System

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

UnloadContent will be called once per game and is the place to unload all content.
protected UnloadContent ( ) : void
Результат void

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

Allows the game to run logic such as updating the world, 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

Описание свойств

bookpages публичное свойство

public Texture2D,Microsoft.Xna.Framework.Graphics bookpages
Результат Microsoft.Xna.Framework.Graphics.Texture2D

finalScore публичное свойство

public int finalScore
Результат int

graphics публичное свойство

public GraphicsDeviceManager graphics
Результат GraphicsDeviceManager

spriteBatch публичное свойство

public SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
Результат Microsoft.Xna.Framework.Graphics.SpriteBatch

spriteFont публичное свойство

public SpriteFont,Microsoft.Xna.Framework.Graphics spriteFont
Результат Microsoft.Xna.Framework.Graphics.SpriteFont