C# 클래스 SunsetHigh.InGameMenu

Static class for handling the in-game menu.
파일 보기 프로젝트 열기: ErraticUnicorn/MOSH

공개 메소드들

메소드 설명
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