C# Class Swordening.InMenus

Inheritance: GameState
ファイルを表示 Open project: ArghyV/Peliohjelmointi-s2011 Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
SetCurrentMenu ( ) : void

Adds the current menu to the component collection.

SwitchToMenu ( Menus menu ) : void

Method Details

InMenus() public method

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

ProcessKeyboardInput() protected method

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

ProcessMouseInput() protected method

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