The base class for a TerminalModule. Used for providing different states of the terminal application. Provides various methods to display information in a TerminalModule buffer. Direct output via the Console class is not to be used.
Esempio n. 1
0
 /// <summary>
 /// Removes a TerminalModule object from this BattleshipConsole.
 /// </summary>
 /// <param name="mod"></param>
 public static void RemoveModule(TerminalModule mod)
 {
     runningMods.Remove(mod);
 }
Esempio n. 2
0
 public void SetModule(TerminalModule mod)
 {
     module = mod;
 }
Esempio n. 3
0
 /// <summary>
 /// Adds a TerminalModule object to this BattleshipConsole for displaying.
 /// </summary>
 /// <param name="mod"></param>
 public static void AddModule(TerminalModule mod)
 {
     runningMods.Add(mod);
 }