C# Class UHSampleGame.ScreenManagement.Screen

Exibir arquivo Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Protected Properties

Property Type Description
name string
screenManager ScreenManager
status ScreenStatus

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

Function that contains code to draw the current screen state

ExitScreen ( ) : void
HandleInput ( InputManager input ) : void

Handles input logic

LoadContent ( ) : void
ResetRenderStates ( ) : void

Reset the render states so spritebatch and models render correctly

Screen ( string name ) : System

Constructor that creates a screen base class

SetStatus ( ScreenStatus status ) : void

Sets the current screen display status

UnloadContent ( ) : void
Update ( GameTime gameTime ) : void

Function that contains code that will update the screen

Method Details

Draw() public method

Function that contains code to draw the current screen state
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Contains timer information
return void

ExitScreen() public method

public ExitScreen ( ) : void
return void

HandleInput() public method

Handles input logic
public HandleInput ( InputManager input ) : void
input UHSampleGame.InputManagement.InputManager The input manager for the game
return void

LoadContent() public method

public LoadContent ( ) : void
return void

ResetRenderStates() public method

Reset the render states so spritebatch and models render correctly
public ResetRenderStates ( ) : void
return void

Screen() public method

Constructor that creates a screen base class
public Screen ( string name ) : System
name string This should be a unique way to identify each screen
return System

SetStatus() public method

Sets the current screen display status
public SetStatus ( ScreenStatus status ) : void
status ScreenStatus Current screen status
return void

UnloadContent() public method

public UnloadContent ( ) : void
return void

Update() public method

Function that contains code that will update the screen
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Contains timer information
return void

Property Details

name protected_oe property

protected string name
return string

screenManager protected_oe property

protected ScreenManager,UHSampleGame.ScreenManagement screenManager
return ScreenManager

status protected_oe property

protected ScreenStatus status
return ScreenStatus