C# Class SunsetHigh.InGameMenu

Static class for handling the in-game menu.
Afficher le fichier Open project: ErraticUnicorn/MOSH

Méthodes publiques

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

Private Methods

Méthode Description
nullCheck ( ) : void
popIn ( ) : void
popOut ( ) : void

Method Details

close() public static méthode

public static close ( ) : void
Résultat void

confirm() public static méthode

public static confirm ( ) : void
Résultat void

draw() public static méthode

public static draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

goBack() public static méthode

public static goBack ( ) : void
Résultat void

init() public static méthode

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
Résultat void

isExiting() public static méthode

public static isExiting ( ) : bool
Résultat bool

isOpen() public static méthode

public static isOpen ( ) : bool
Résultat bool

loadContent() public static méthode

public static loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

moveCursor() public static méthode

public static moveCursor ( Direction dir ) : void
dir Direction
Résultat void

open() public static méthode

public static open ( ) : void
Résultat void

pushActivePanel() public static méthode

public static pushActivePanel ( Panel panel ) : void
panel Panel
Résultat void

refreshPanelLists() public static méthode

public static refreshPanelLists ( ) : void
Résultat void

reset() public static méthode

We'll need a cleaner method later of resetting the game.
public static reset ( ) : void
Résultat void

sendOneKeyInput() public static méthode

Used for changing key controls
public static sendOneKeyInput ( Keys key ) : bool
key Keys
Résultat bool

update() public static méthode

public static update ( float elapsed ) : void
elapsed float
Résultat void