C# Класс Gears.Navigation.MenuState

Наследование: Gears.Cloud.GameState
Показать файл Открыть проект

Открытые методы

Метод Описание
Draw ( SpriteBatch spriteBatch ) : void
MenuState ( Menu menu ) : System.Collections.Generic
Update ( GameTime gameTime ) : void

Защищенные методы

Метод Описание
DrawMenu ( SpriteBatch spriteBatch ) : void

Contains abstract Draw logic for the Menu.

Приватные методы

Метод Описание
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.

Описание методов

Draw() публичный Метод

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

DrawMenu() защищенный Метод

Contains abstract Draw logic for the Menu.
protected DrawMenu ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch The SpriteBatch
Результат void

MenuState() публичный Метод

public MenuState ( Menu menu ) : System.Collections.Generic
menu Menu
Результат System.Collections.Generic

Update() публичный Метод

public Update ( GameTime gameTime ) : void
gameTime GameTime
Результат void