C# Class Project_Starfighter.Starfighter

This is the main type for your game
Inheritance: Microsoft.Xna.Framework.Game
Afficher le fichier Open project: csce3513/Team15 Class Usage Examples

Méthodes publiques

Свойство Type Description
bookpages Microsoft.Xna.Framework.Graphics.Texture2D
finalScore int
graphics GraphicsDeviceManager
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont

Méthodes publiques

Méthode Description
Starfighter ( ) : System

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

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.

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.

Private Methods

Méthode Description
CheckKey ( Keys theKey ) : bool
HandleActionScreen ( ) : void

HandleCreditScreen ( ) : void

HandleGameOverScreen ( ) : void
HandleInstructionsScreen ( ) : void

HandleQuitScreen ( ) : void
HandleStartScreen ( ) : void

HandleVictoryScreen ( ) : void

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

LoadContent() protected méthode

protected LoadContent ( ) : void
Résultat void

Starfighter() public méthode

public Starfighter ( ) : System
Résultat System

Starfighter() public méthode

public Starfighter ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
Résultat System

UnloadContent() protected méthode

UnloadContent will be called once per game and is the place to unload all content.
protected UnloadContent ( ) : void
Résultat void

Update() protected méthode

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.
Résultat void

Property Details

bookpages public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics bookpages
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

finalScore public_oe property

public int finalScore
Résultat int

graphics public_oe property

public GraphicsDeviceManager graphics
Résultat GraphicsDeviceManager

spriteBatch public_oe property

public SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
Résultat Microsoft.Xna.Framework.Graphics.SpriteBatch

spriteFont public_oe property

public SpriteFont,Microsoft.Xna.Framework.Graphics spriteFont
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont