C# Class Gears.Navigation.MenuState

Inheritance: Gears.Cloud.GameState
Afficher le fichier Open project: spectrumbranch/gearsvge

Méthodes publiques

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

Méthodes protégées

Méthode Description
DrawMenu ( SpriteBatch spriteBatch ) : void

Contains abstract Draw logic for the Menu.

Private Methods

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

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

DrawMenu() protected méthode

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

MenuState() public méthode

public MenuState ( Menu menu ) : System.Collections.Generic
menu Menu
Résultat System.Collections.Generic

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime GameTime
Résultat void