C# Class TraceRacer.GameplayScreen

This screen implements the actual game logic. It is just a placeholder to get the idea across: you'll probably want to put some more interesting gameplay in here!
Inheritance: GameScreen
Mostra file Open project: alexcoco/trace_racer

Public Methods

Method Description
Activate ( bool instancePreserved ) : void

Load graphics content for the game.

Deactivate ( ) : void
Draw ( GameTime gameTime ) : void

Draws the gameplay screen.

GameplayScreen ( ) : System

Constructor.

HandleInput ( GameTime gameTime, InputState input ) : void

Lets the game respond to player input. Unlike the Update method, this will only be called when the gameplay screen is active.

Unload ( ) : void

Unload graphics content used by the game.

Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

Updates the state of the game. This method checks the GameScreen.IsActive property, so the game will stop updating when the pause menu is active, or if you tab away to a different application.

Method Details

Activate() public method

Load graphics content for the game.
public Activate ( bool instancePreserved ) : void
instancePreserved bool
return void

Deactivate() public method

public Deactivate ( ) : void
return void

Draw() public method

Draws the gameplay screen.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

GameplayScreen() public method

Constructor.
public GameplayScreen ( ) : System
return System

HandleInput() public method

Lets the game respond to player input. Unlike the Update method, this will only be called when the gameplay screen is active.
public HandleInput ( GameTime gameTime, InputState input ) : void
gameTime Microsoft.Xna.Framework.GameTime
input InputState
return void

Unload() public method

Unload graphics content used by the game.
public Unload ( ) : void
return void

Update() public method

Updates the state of the game. This method checks the GameScreen.IsActive property, so the game will stop updating when the pause menu is active, or if you tab away to a different application.
public Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft.Xna.Framework.GameTime
otherScreenHasFocus bool
coveredByOtherScreen bool
return void