C# Class Gears.Navigation.MenuState

Inheritance: Gears.Cloud.GameState
ファイルを表示 Open project: spectrumbranch/gearsvge

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
MenuState ( Menu menu ) : System.Collections.Generic
Update ( GameTime gameTime ) : void

Protected Methods

Method Description
DrawMenu ( SpriteBatch spriteBatch ) : void

Contains abstract Draw logic for the Menu.

Private Methods

Method Description
ActivateState ( ) : void

Contains logic that should be fired every time the state becomes active. This should fire especially in cases where the state had become inactive and then regains activity once again.

InactivateState ( ) : void

Contains logic that should be fired every time the state becomes inactive. This was originally implemented to avoid function pointers AKA delegates from firing out of the Master.stack order.

InitializeLocal ( ) : void
KeyDown ( KeyboardState &currentKeyboardState, KeyboardState &oldKeyboardState ) : void

Event based Input hook for MenuState.

PushActiveMenuIndex ( ) : void

Called when a user presses Enter on a specific Menu Item.

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

DrawMenu() protected method

Contains abstract Draw logic for the Menu.
protected DrawMenu ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch The SpriteBatch
return void

MenuState() public method

public MenuState ( Menu menu ) : System.Collections.Generic
menu Menu
return System.Collections.Generic

Update() public method

public Update ( GameTime gameTime ) : void
gameTime GameTime
return void