C# Class Project_Starfighter.Starfighter

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

Public Properties

Property Type Description
bookpages Microsoft.Xna.Framework.Graphics.Texture2D
finalScore int
graphics GraphicsDeviceManager
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont

Public Methods

Method Description
Starfighter ( ) : System

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

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.

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

Method Description
CheckKey ( Keys theKey ) : bool
HandleActionScreen ( ) : void

HandleCreditScreen ( ) : void

HandleGameOverScreen ( ) : void
HandleInstructionsScreen ( ) : void

HandleQuitScreen ( ) : void
HandleStartScreen ( ) : void

HandleVictoryScreen ( ) : void

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

LoadContent() protected method

protected LoadContent ( ) : void
return void

Starfighter() public method

public Starfighter ( ) : System
return System

Starfighter() public method

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

UnloadContent() protected method

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

Update() protected method

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

Property Details

bookpages public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics bookpages
return Microsoft.Xna.Framework.Graphics.Texture2D

finalScore public_oe property

public int finalScore
return int

graphics public_oe property

public GraphicsDeviceManager graphics
return GraphicsDeviceManager

spriteBatch public_oe property

public SpriteBatch,Microsoft.Xna.Framework.Graphics spriteBatch
return Microsoft.Xna.Framework.Graphics.SpriteBatch

spriteFont public_oe property

public SpriteFont,Microsoft.Xna.Framework.Graphics spriteFont
return Microsoft.Xna.Framework.Graphics.SpriteFont