Desktop/Dev/GameConsole/GameConsole/GameConsole.cs File Reference


Namespaces

namespace  Mindshifter
namespace  System.Collections.ObjectModel
namespace  System.IO
namespace  Microsoft.Xna.Framework.Graphics

Classes

struct  Mindshifter.ConsoleMessage
 Defines a message logged to the console. More...
class  Mindshifter.GameConsole
 GameConsole is a simple console game component that displays a log of text to the screen and allows the user to enter input (which is also logged). Handling user input can be done in two ways, the first by registering a delegate to the console's 'TextEntered' event, which will trigger any delegates registered to it when the user enters text into the console. Both the text input and current GameTime are passed to the delegate for processing, and the function can handle the raw input any way it wishes to. The second method for handling input is to register a ConsoleCommandHandler with the console through the 'BindCommandHandler' method. ConsoleCommandHandler delegates are registered for a specific command string, and are triggered when that particular string is entered into the console. Any text after the command is considered to be a set of arguments separated by spaces. These arguments are passed to the ConsoleCommandHandler delegate when it is triggered. More...
class  Mindshifter.GameConsole.ConsoleCommandHandlerInfo
 Describes a ConsoleCommandHandler entry and the argument separators it requires. More...

Enumerations

enum  Mindshifter.ConsoleDisplayOptions { Mindshifter.None, Mindshifter.None = 0, Mindshifter.TimeStamp = (0x1 << 1), Mindshifter.LogLevel = (TimeStamp << 1) }
 A set of flags specifying how to display output in the console. More...

Functions

delegate void Mindshifter.ConsoleInputHandler (string input, GameTime time)
 Delegate called when text is entered into the console.
delegate void Mindshifter.ConsoleLogHandler (ConsoleMessage message)
 Delegate called when a message is logged to the console.
delegate void Mindshifter.ConsoleCommandHandler (GameTime time, string[] args)
 Delegate called when a specific command is entered into the console.

Generated on Wed Apr 2 17:18:46 2008 for GameConsole by  doxygen 1.5.1-p1