C# 클래스 Gears.Navigation.Old_MenuState

MenuState rev.005 Abstract class, intended to be inherited from and then instantiated with constructor parameters. Every MenuState is a Menu, and contains a MenuItemCollection, which is simply a collection of possible MenuStates for use in the MenuState/Engine logic. To avoid feature creep, this revision does not include parameterized fonts or font sizes or window sizes. This is done on purpose and can easily be refactored in on a later revision.
상속: Gears.Navigation.MenuReadyGameState
파일 보기 프로젝트 열기: spectrumbranch/gearsvge

보호된 프로퍼티들

프로퍼티 타입 설명
menuFont Microsoft.Xna.Framework.Graphics.SpriteFont
menuItemFont Microsoft.Xna.Framework.Graphics.SpriteFont

공개 메소드들

메소드 설명
Draw ( SpriteBatch spriteBatch ) : void
Old_MenuState ( string menuText, IMenuItem menuItemList ) : System.Collections.Generic
Old_MenuState ( string menuText, List menuItemList ) : 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.

Initialize ( string menuText ) : void
KeyDown ( KeyboardState &currentKeyboardState, KeyboardState &oldKeyboardState ) : void

Event based Input hook for MenuState.

LoadContent ( ) : void
PushActiveMenuIndex ( ) : void

Called when a user presses Enter on a specific Menu Item.

UpdateInput ( GameTime gameTime ) : void

Only should be run if the state is active.

메소드 상세

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
리턴 void

Old_MenuState() 공개 메소드

public Old_MenuState ( string menuText, IMenuItem menuItemList ) : System.Collections.Generic
menuText string
menuItemList IMenuItem
리턴 System.Collections.Generic

Old_MenuState() 공개 메소드

public Old_MenuState ( string menuText, List menuItemList ) : System.Collections.Generic
menuText string
menuItemList List
리턴 System.Collections.Generic

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

프로퍼티 상세

menuFont 보호되어 있는 프로퍼티

protected SpriteFont,Microsoft.Xna.Framework.Graphics menuFont
리턴 Microsoft.Xna.Framework.Graphics.SpriteFont

menuItemFont 보호되어 있는 프로퍼티

protected SpriteFont,Microsoft.Xna.Framework.Graphics menuItemFont
리턴 Microsoft.Xna.Framework.Graphics.SpriteFont