C# Class Gonzo.ScreenManager

Manager responsible for updating and drawing UIScreen instances.
Datei anzeigen Open project: Afr0Games/Project-Dollhouse Class Usage Examples

Public Methods

Method Description
AddScreen ( UIScreen Screen ) : void

Add a UIScreen instance to this ScreenManager instance.

Draw ( ) : void

Draws 2D scenes.

Draw3D ( ) : void

Draws Vitaboy scenes (3D).

ReceivedTextInput ( object Sender, TextInputEventArgs TInputEArgs ) : void

This should be called by an instance of Microsoft.XNA.Game.Window whenever it receives text input. This method will call the OnTextInput event.

ScreenManager ( GraphicsDevice Graphics, SpriteFont Fonts, InputHelper Input ) : System

Constructs a new ScreenManager instance.

Update ( GameTime GTime ) : void

Method Details

AddScreen() public method

Add a UIScreen instance to this ScreenManager instance.
public AddScreen ( UIScreen Screen ) : void
Screen UIScreen
return void

Draw() public method

Draws 2D scenes.
public Draw ( ) : void
return void

Draw3D() public method

Draws Vitaboy scenes (3D).
public Draw3D ( ) : void
return void

ReceivedTextInput() public method

This should be called by an instance of Microsoft.XNA.Game.Window whenever it receives text input. This method will call the OnTextInput event.
public ReceivedTextInput ( object Sender, TextInputEventArgs TInputEArgs ) : void
Sender object The object that invoked this event, sent by the callee of this method.
TInputEArgs TextInputEventArgs A TextInputEventArgs instance, sent by the callee of this method.
return void

ScreenManager() public method

Constructs a new ScreenManager instance.
public ScreenManager ( GraphicsDevice Graphics, SpriteFont Fonts, InputHelper Input ) : System
Graphics GraphicsDevice
Fonts SpriteFont
Input InputHelper An InputHelper instance, used for updating screens.
return System

Update() public method

public Update ( GameTime GTime ) : void
GTime GameTime
return void