C# Class Swordening.InGame

Inheritance: GameState
Afficher le fichier Open project: ArghyV/Peliohjelmointi-s2011 Class Usage Examples

Méthodes publiques

Свойство Type Description
camera CameraAndLights
liveGrid LiveGrid
mapGrid MapGrid

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
AddEnemy ( ) : void
UpdateCamera ( ) : void

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

Method Details

Draw() public méthode

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

InGame() public méthode

public InGame ( SwordeningGame game ) : System
game SwordeningGame
Résultat System

Initialize() public méthode

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

LoadContent() protected méthode

protected LoadContent ( ) : void
Résultat void

ProcessKeyboardInput() protected méthode

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

ProcessMouseInput() protected méthode

Reads and processes the input from the keyboard.
protected ProcessMouseInput ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Update() public méthode

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

Property Details

camera public_oe property

public CameraAndLights,Swordening camera
Résultat CameraAndLights

liveGrid public_oe property

public LiveGrid,Swordening liveGrid
Résultat LiveGrid

mapGrid public_oe property

public MapGrid,Swordening mapGrid
Résultat MapGrid