C# Class Myre.StateManagement.ScreenManager

A class which manages screens.
显示文件 Open project: martindevans/Myre Class Usage Examples

Public Methods

Method Description
Draw ( Microsoft.Xna.Framework.GameTime gameTime ) : void

Draws visible screens.

Pop ( ) : Screen

Pops this instance.

PrepareDraw ( ) : void

Prepares visible screens for drawing.

Push ( Screen screen ) : void

Pushes the specified screen.

ScreenManager ( ) : System

Initializes a new instance of the ScreenManager class.

Update ( Microsoft.Xna.Framework.GameTime gameTime ) : void

Updates visible screens.

Private Methods

Method Description
UpdateTransitionProgress ( Screen screen, Microsoft.Xna.Framework.GameTime gameTime ) : void

Method Details

Draw() public method

Draws visible screens.
public Draw ( Microsoft.Xna.Framework.GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The game time.
return void

Pop() public method

Pops this instance.
public Pop ( ) : Screen
return Screen

PrepareDraw() public method

Prepares visible screens for drawing.
public PrepareDraw ( ) : void
return void

Push() public method

Pushes the specified screen.
public Push ( Screen screen ) : void
screen Screen The screen.
return void

ScreenManager() public method

Initializes a new instance of the ScreenManager class.
public ScreenManager ( ) : System
return System

Update() public method

Updates visible screens.
public Update ( Microsoft.Xna.Framework.GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The game time.
return void