C# Class Swordening.InGame

Inheritance: GameState
Exibir arquivo Open project: ArghyV/Peliohjelmointi-s2011 Class Usage Examples

Public Properties

Property Type Description
camera CameraAndLights
liveGrid LiveGrid
mapGrid MapGrid

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

Draw the in-game GUI.

InGame ( SwordeningGame game ) : System
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.

Update ( GameTime gameTime ) : void

Allows the game component to update itself.

Protected Methods

Method Description
LoadContent ( ) : void
ProcessKeyboardInput ( GameTime gameTime ) : void

Reads and processes the input from the keyboard.

ProcessMouseInput ( GameTime gameTime ) : void

Reads and processes the input from the keyboard.

Private Methods

Method Description
AddEnemy ( ) : void
UpdateCamera ( ) : void

Updates the camera's position to look at the player.

Method Details

Draw() public method

Draw the in-game GUI.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

InGame() public method

public InGame ( SwordeningGame game ) : System
game SwordeningGame
return System

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

LoadContent() protected method

protected LoadContent ( ) : void
return void

ProcessKeyboardInput() protected method

Reads and processes the input from the keyboard.
protected ProcessKeyboardInput ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

ProcessMouseInput() protected method

Reads and processes the input from the keyboard.
protected ProcessMouseInput ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
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

camera public_oe property

public CameraAndLights,Swordening camera
return CameraAndLights

liveGrid public_oe property

public LiveGrid,Swordening liveGrid
return LiveGrid

mapGrid public_oe property

public MapGrid,Swordening mapGrid
return MapGrid