C# Class Swordening.InMenus

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

Méthodes publiques

Méthode Description
InMenus ( 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
ProcessKeyboardInput ( GameTime gameTime ) : void

Handles keyboard input common to every menu.

ProcessMouseInput ( GameTime gameTime ) : void

Handles mouse input common to every menu.

Private Methods

Méthode Description
SetCurrentMenu ( ) : void

Adds the current menu to the component collection.

SwitchToMenu ( Menus menu ) : void

Method Details

InMenus() public méthode

public InMenus ( 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

ProcessKeyboardInput() protected méthode

Handles keyboard input common to every menu.
protected ProcessKeyboardInput ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

ProcessMouseInput() protected méthode

Handles mouse input common to every menu.
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