C# 클래스 CastleEscape.StateManager

Manages the game states. Author: Dennis Honeyman
파일 보기 프로젝트 열기: Daminvar/CastleEscape

공개 메소드들

메소드 설명
Draw ( SpriteBatch spriteBatch ) : void

Draws the top state.

Initialize ( ) : void

Initialize the state manager

IsEmpty ( ) : bool
PopAllStates ( ) : void

Removes all states.

PopState ( ) : void

Removes the top state.

PushState ( State newState ) : void

Adds a new state.

Update ( GameTime gameTime ) : void

Updates the top state. Called every frame.

비공개 메소드들

메소드 설명
drawState ( SpriteBatch spriteBatch, int index ) : void

메소드 상세

Draw() 공개 정적인 메소드

Draws the top state.
public static Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch The SpriteBatch object to use for drawing.
리턴 void

Initialize() 공개 정적인 메소드

Initialize the state manager
public static Initialize ( ) : void
리턴 void

IsEmpty() 공개 정적인 메소드

public static IsEmpty ( ) : bool
리턴 bool

PopAllStates() 공개 정적인 메소드

Removes all states.
public static PopAllStates ( ) : void
리턴 void

PopState() 공개 정적인 메소드

Removes the top state.
public static PopState ( ) : void
리턴 void

PushState() 공개 정적인 메소드

Adds a new state.
public static PushState ( State newState ) : void
newState State
리턴 void

Update() 공개 정적인 메소드

Updates the top state. Called every frame.
public static Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void