C# 클래스 FarseerPhysics.Samples.ScreenSystem.ScreenManager

The screen manager is a component which manages one or more GameScreen instances. It maintains a stack of screens, calls their Update and Draw methods at the appropriate times, and automatically routes input to the topmost active screen.
상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: tinco/Farseer-Physics 1 사용 예제들

공개 메소드들

메소드 설명
AddScreen ( GameScreen screen ) : void

Adds a new screen to the screen manager.

Draw ( GameTime gameTime ) : void

Tells each screen to draw itself.

Initialize ( ) : void

Initializes the screen manager component.

RemoveScreen ( GameScreen screen ) : void

Removes a screen from the screen manager. You should normally use GameScreen.ExitScreen instead of calling this directly, so the screen can gradually transition off rather than just being instantly removed.

ScreenManager ( Microsoft.Xna.Framework.Game game ) : System.Collections.Generic

Constructs a new screen manager component.

Update ( GameTime gameTime ) : void

Allows each screen to run logic.

보호된 메소드들

메소드 설명
LoadContent ( ) : void

Load your graphics content.

UnloadContent ( ) : void

Unload your graphics content.

메소드 상세

AddScreen() 공개 메소드

Adds a new screen to the screen manager.
public AddScreen ( GameScreen screen ) : void
screen GameScreen
리턴 void

Draw() 공개 메소드

Tells each screen to draw itself.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

Initialize() 공개 메소드

Initializes the screen manager component.
public Initialize ( ) : void
리턴 void

LoadContent() 보호된 메소드

Load your graphics content.
protected LoadContent ( ) : void
리턴 void

RemoveScreen() 공개 메소드

Removes a screen from the screen manager. You should normally use GameScreen.ExitScreen instead of calling this directly, so the screen can gradually transition off rather than just being instantly removed.
public RemoveScreen ( GameScreen screen ) : void
screen GameScreen
리턴 void

ScreenManager() 공개 메소드

Constructs a new screen manager component.
public ScreenManager ( Microsoft.Xna.Framework.Game game ) : System.Collections.Generic
game Microsoft.Xna.Framework.Game
리턴 System.Collections.Generic

UnloadContent() 보호된 메소드

Unload your graphics content.
protected UnloadContent ( ) : void
리턴 void

Update() 공개 메소드

Allows each screen to run logic.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void