C# Class PerformanceMeasuring.GameDebugTools.DebugCommandUI

Command Window class for Debug purpose.
Debug command UI that runs in the Game. You can type commands by keyboard. This works Xbox 360 too. You just need to connect USB keyboard. Also, this debug command works on Windows Phone too. How to Use: 1) Add this component to the game. 2) Register command by RegisterCommand method. 3) Open/Close Debug window by Tab key.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent, IDebugCommandHost
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Méthode Description
DebugCommandUI ( Microsoft.Xna.Framework.Game game ) : System

Constructor

Draw ( GameTime gameTime ) : void
Echo ( DebugCommandMessage messageType, string text ) : void
Echo ( string text ) : void
EchoError ( string text ) : void
EchoWarning ( string text ) : void
ExecuteCommand ( string command ) : void
Hide ( ) : void

Hide Debug Command window.

Initialize ( ) : void

Initialize component

PopExecutioner ( ) : void
ProcessKeyInputs ( float dt ) : void

Hand keyboard input.

PushExecutioner ( IDebugCommandExecutioner executioner ) : void
RegisterCommand ( string command, string description, DebugCommandExecute callback ) : void
RegisterEchoListner ( IDebugEchoListner listner ) : void
Show ( ) : void

Show Debug Command window.

UnregisterCommand ( string command ) : void
UnregisterEchoListner ( IDebugEchoListner listner ) : void
Update ( GameTime gameTime ) : void

Private Methods

Méthode Description
IsKeyPressed ( Keys key, float dt ) : bool

Pressing check with key repeating.

Method Details

DebugCommandUI() public méthode

Constructor
public DebugCommandUI ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
Résultat System

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Echo() public méthode

public Echo ( DebugCommandMessage messageType, string text ) : void
messageType DebugCommandMessage
text string
Résultat void

Echo() public méthode

public Echo ( string text ) : void
text string
Résultat void

EchoError() public méthode

public EchoError ( string text ) : void
text string
Résultat void

EchoWarning() public méthode

public EchoWarning ( string text ) : void
text string
Résultat void

ExecuteCommand() public méthode

public ExecuteCommand ( string command ) : void
command string
Résultat void

Hide() public méthode

Hide Debug Command window.
public Hide ( ) : void
Résultat void

Initialize() public méthode

Initialize component
public Initialize ( ) : void
Résultat void

PopExecutioner() public méthode

public PopExecutioner ( ) : void
Résultat void

ProcessKeyInputs() public méthode

Hand keyboard input.
public ProcessKeyInputs ( float dt ) : void
dt float
Résultat void

PushExecutioner() public méthode

public PushExecutioner ( IDebugCommandExecutioner executioner ) : void
executioner IDebugCommandExecutioner
Résultat void

RegisterCommand() public méthode

public RegisterCommand ( string command, string description, DebugCommandExecute callback ) : void
command string
description string
callback DebugCommandExecute
Résultat void

RegisterEchoListner() public méthode

public RegisterEchoListner ( IDebugEchoListner listner ) : void
listner IDebugEchoListner
Résultat void

Show() public méthode

Show Debug Command window.
public Show ( ) : void
Résultat void

UnregisterCommand() public méthode

public UnregisterCommand ( string command ) : void
command string
Résultat void

UnregisterEchoListner() public méthode

public UnregisterEchoListner ( IDebugEchoListner listner ) : void
listner IDebugEchoListner
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void