C# Class UHSampleGame.ScreenManagement.ScreenManager

Mostra file Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Public Properties

Property Type Description
Game Microsoft.Xna.Framework.Game
GraphicsDeviceManager GraphicsDeviceManager
InputManager UHSampleGame.InputManagement.InputManager
SpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch

Public Methods

Method Description
AddScreen ( Screen screen ) : bool

Add as screen to the screen list

Draw ( GameTime gameTime ) : void
RemoveScreen ( Screen screen ) : bool

Remove an existing screen

RemoveScreen ( string screenName ) : bool

Remove an existing screen

ScreenManager ( Microsoft.Xna.Framework.Game game ) : System
ShowScreen ( Screen screen ) : bool

Show a screen

Update ( GameTime gameTime ) : void

Method Details

AddScreen() public method

Add as screen to the screen list
public AddScreen ( Screen screen ) : bool
screen Screen Screen to add
return bool

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

RemoveScreen() public method

Remove an existing screen
public RemoveScreen ( Screen screen ) : bool
screen Screen Screen object to remove
return bool

RemoveScreen() public method

Remove an existing screen
public RemoveScreen ( string screenName ) : bool
screenName string The Unique Screen Identifier
return bool

ScreenManager() public method

public ScreenManager ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

ShowScreen() public method

Show a screen
public ShowScreen ( Screen screen ) : bool
screen Screen Screen to show
return bool

Update() public method

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

Property Details

Game public_oe static_oe property

public static Game,Microsoft.Xna.Framework Game
return Microsoft.Xna.Framework.Game

GraphicsDeviceManager public_oe static_oe property

public static GraphicsDeviceManager GraphicsDeviceManager
return GraphicsDeviceManager

InputManager public_oe static_oe property

public static InputManager,UHSampleGame.InputManagement InputManager
return UHSampleGame.InputManagement.InputManager

SpriteBatch public_oe static_oe property

public static SpriteBatch,Microsoft.Xna.Framework.Graphics SpriteBatch
return Microsoft.Xna.Framework.Graphics.SpriteBatch