C# Class Project_Starfighter.GameScreen

This is a game component that implements IUpdateable.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Show file Open project: csce3513/Team15 Class Usage Examples

Protected Properties

Property Type Description
game Microsoft.Xna.Framework.Game
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

GameScreen ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch ) : System

Constructor for the Game Screen

Hide ( ) : void

Initialize ( ) : void

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.

Show ( ) : void

Update ( GameTime gameTime ) : void

Allows the game component to update itself.

Method Details

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

GameScreen() public method

Constructor for the Game Screen
public GameScreen ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch ) : System
game Microsoft.Xna.Framework.Game
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return System

Hide() public method

public Hide ( ) : void
return void

Initialize() public method

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
public Initialize ( ) : void
return void

Show() public method

public Show ( ) : void
return void

Update() public method

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

Property Details

game protected property

protected Game,Microsoft.Xna.Framework game
return Microsoft.Xna.Framework.Game

spriteBatch protected property

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