MuScreenManager  1.0
MuScreenManager is an XNA class library that provides a screen management system, allowing for the simple integration of menus and other screens into your game.
 All Classes Namespaces Functions Variables Enumerations Properties
MuScreenManager.Screen Class Reference

Base class for anything that wants to be a screen within ScreenManager More...

Public Member Functions

 Screen (ScreenState screenState=ScreenState.Active)
 Initialize the Screen components of this object
void OnInitialize ()
 Initializes objects required by the base object before normal initialization
virtual void Initialize ()
 Post LoadContent Initialization for objects
virtual void LoadContent ()
 Load content for this screen
virtual void UnloadContent ()
 Unload content generated by this screen
virtual void Update (GameTime gameTime)
 Method used to consistently update this screen
virtual void Draw (SpriteBatch spriteBatch, GameTime gameTime)
 Draws specificied objects within this screen

Protected Attributes

ScreenManager screenManager
 ScreenManager that is managing this screen
ContentManager content
 ContentManager generated to serve this screens content
ScreenState screenState
 Used to check what state this screen is currently

Properties

ScreenManager ScreenManager [set]
ScreenState ScreenState [get, set]

Detailed Description

Base class for anything that wants to be a screen within ScreenManager

Constructor & Destructor Documentation

MuScreenManager.Screen.Screen ( ScreenState  screenState = ScreenState.Active)

Initialize the Screen components of this object

Parameters
screenStateSet what the inital state of this screen is

Member Function Documentation

virtual void MuScreenManager.Screen.Draw ( SpriteBatch  spriteBatch,
GameTime  gameTime 
)
virtual

Draws specificied objects within this screen

Parameters
spriteBatchSpriteBatch used to draw these objects on screen
gameTimeProvides a snapshot of the game time
virtual void MuScreenManager.Screen.Initialize ( )
virtual

Post LoadContent Initialization for objects

virtual void MuScreenManager.Screen.LoadContent ( )
virtual

Load content for this screen

void MuScreenManager.Screen.OnInitialize ( )

Initializes objects required by the base object before normal initialization

virtual void MuScreenManager.Screen.UnloadContent ( )
virtual

Unload content generated by this screen

virtual void MuScreenManager.Screen.Update ( GameTime  gameTime)
virtual

Method used to consistently update this screen

Parameters
gameTimeProvides a snapshot of the game time

Member Data Documentation

ContentManager MuScreenManager.Screen.content
protected

ContentManager generated to serve this screens content

ScreenManager MuScreenManager.Screen.screenManager
protected

ScreenManager that is managing this screen

ScreenState MuScreenManager.Screen.screenState
protected

Used to check what state this screen is currently


The documentation for this class was generated from the following file: