Method | Description | |
---|---|---|
AddModule ( |
Adds a TerminalModule object to this BattleshipConsole for displaying.
|
|
RemoveModule ( |
Removes a TerminalModule object from this BattleshipConsole.
|
|
UpdateDisplay ( ) : void |
Refreshes the entire terminal buffer. Use after adding/removing modules.
|
Method | Description | |
---|---|---|
HandleKeyControl ( |
Used for selecting a buffer via arrow keys + CTRL. Also moves the order of TerminalModules in this BattleshipConsole with arrow keys + CTRL + SHIFT. Does not do anything and returns false if CTRL is not pressed.
|
|
Main ( string args ) : void | ||
ProcessInputLine ( |
Processes a key press and modifies the input string with valid characters.
|
|
RecalculateBounds ( ) : void |
Calculates the boundaries of the generated number of rows and columns used for displaying the TerminalModules based on the size of the terminal window.
|
|
UpdateInputLineDisplay ( bool complete ) : void |
Updates the display of the input line on the terminal window. Optionally updates just the input string that the user has entered instead of the entire line.
|
|
WriteGridLines ( ) : void |
Makes the grid lines that identify each module displayed on the terminal.
|
public static AddModule ( |
||
mod | ||
return | void |
public static RemoveModule ( |
||
mod | ||
return | void |