C# Класс SunsetHigh.InGameMenu

Static class for handling the in-game menu.
Показать файл Открыть проект

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

Метод Описание
close ( ) : void
confirm ( ) : void
draw ( SpriteBatch sb ) : void
goBack ( ) : void
init ( ) : void

Initializes all the menu panels and links them togther. Call this in the Game's create cycle. Lots of hard coding here! - we'll have to adjust it if the game's viewport size changes.

isExiting ( ) : bool
isOpen ( ) : bool
loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
moveCursor ( Direction dir ) : void
open ( ) : void
pushActivePanel ( Panel panel ) : void
refreshPanelLists ( ) : void
reset ( ) : void

We'll need a cleaner method later of resetting the game.

sendOneKeyInput ( Keys key ) : bool

Used for changing key controls

update ( float elapsed ) : void

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

Метод Описание
nullCheck ( ) : void
popIn ( ) : void
popOut ( ) : void

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

close() публичный статический Метод

public static close ( ) : void
Результат void

confirm() публичный статический Метод

public static confirm ( ) : void
Результат void

draw() публичный статический Метод

public static draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

goBack() публичный статический Метод

public static goBack ( ) : void
Результат void

init() публичный статический Метод

Initializes all the menu panels and links them togther. Call this in the Game's create cycle. Lots of hard coding here! - we'll have to adjust it if the game's viewport size changes.
public static init ( ) : void
Результат void

isExiting() публичный статический Метод

public static isExiting ( ) : bool
Результат bool

isOpen() публичный статический Метод

public static isOpen ( ) : bool
Результат bool

loadContent() публичный статический Метод

public static loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Результат void

moveCursor() публичный статический Метод

public static moveCursor ( Direction dir ) : void
dir Direction
Результат void

open() публичный статический Метод

public static open ( ) : void
Результат void

pushActivePanel() публичный статический Метод

public static pushActivePanel ( Panel panel ) : void
panel Panel
Результат void

refreshPanelLists() публичный статический Метод

public static refreshPanelLists ( ) : void
Результат void

reset() публичный статический Метод

We'll need a cleaner method later of resetting the game.
public static reset ( ) : void
Результат void

sendOneKeyInput() публичный статический Метод

Used for changing key controls
public static sendOneKeyInput ( Keys key ) : bool
key Keys
Результат bool

update() публичный статический Метод

public static update ( float elapsed ) : void
elapsed float
Результат void