T_WolfCurses_InputManager - Maxwolf/WolfCurses GitHub Wiki
Deals with keep track of input to the simulation via whatever form that may end up taking. The default implementation is a text user interface (TUI) which allows for the currently accepted commands to be seen and only then accepted.
System.Object
WolfCurses.Module
WolfCurses.InputManager
Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public sealed class InputManager : Module
The InputManager type exposes the following members.
Name | Description | |
---|---|---|
![]() |
InputManager | Initializes a new instance of the InputManager class. |
Name | Description | |
---|---|---|
![]() |
InputBuffer | Input buffer that we will use to hold characters until need to send them to simulation. |
Name | Description | |
---|---|---|
![]() |
AddCharToInputBuffer | Populates an internal input buffer for the simulation that is used to eventually return a possible command string to active game Windows. |
![]() |
ClearBuffer | Removes any text data from the input buffer resetting it to an empty string again. |
![]() |
Destroy | Fired when the simulation is closing and needs to clear out any data structures that it created so the program can exit cleanly. (Overrides Module.Destroy().) |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
OnTick | Called when the simulation is ticked by underlying operating system, game engine, or potato. Each of these system ticks is called at unpredictable rates, however if not a system tick that means the simulation has processed enough of them to fire off event for fixed interval that is set in the core simulation by constant in milliseconds. (Overrides Module.OnTick(Boolean, Boolean).) |
![]() |
RemoveLastCharOfInputBuffer | Removes the last character from input buffer if greater than zero. |
![]() |
SendInputBufferAsCommand | Clears the input buffer and submits whatever was in there to the simulation for processing. Implementation is left up the game simulation itself entirely. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() ![]() |
PRESSENTER | Holds a constant representation of the string telling the user to press enter key to continue so we don't repeat ourselves. |
Name | Description | |
---|---|---|
![]() |
ToDescriptionAttribute | Attempts to grab description attribute from any object. (Defined by AttributeExtensions.) |
Supported in: 0.1