C# Class Swordening.MainMenu

This is a game component that implements IUpdateable.
Inheritance: AbstractMenu
ファイルを表示 Open project: ArghyV/Peliohjelmointi-s2011

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

Allows the game component to draw itself.

MainMenu ( SwordeningGame game, InMenus gameState ) : System
Update ( GameTime gameTime ) : void

Allows the game component to update itself.

Protected Methods

Method Description
LoadContent ( ) : void

Called when graphics resources need to be loaded. Override this method to load any component-specific graphics resources.

ProcessKeyboardInput ( GameTime gameTime ) : void

Handles keyboard input.

ProcessMouseInput ( GameTime gameTime ) : void

Handles mouse input.

Method Details

Draw() public method

Allows the game component to draw itself.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

LoadContent() protected method

Called when graphics resources need to be loaded. Override this method to load any component-specific graphics resources.
protected LoadContent ( ) : void
return void

MainMenu() public method

public MainMenu ( SwordeningGame game, InMenus gameState ) : System
game SwordeningGame
gameState InMenus
return System

ProcessKeyboardInput() protected method

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

ProcessMouseInput() protected method

Handles mouse input.
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