Refactor. Make ConsoleBase a true base class. Create CommandConsole as a simple

console capable of processing commands. Create LocalConsole as a console
that uses cursor control and context help. Precursor to a distributed
console system for the new grid services. No functional change intended :)
This commit is contained in:
Melanie Thielker
2009-05-04 12:15:55 +00:00
parent 8a8fe65526
commit 1b877234da
16 changed files with 991 additions and 819 deletions

View File

@@ -47,7 +47,7 @@ namespace pCampBot
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
protected ConsoleBase m_console;
protected CommandConsole m_console;
protected List<PhysicsBot> m_lBot;
protected Thread[] m_td;
protected bool m_verbose = true;
@@ -206,9 +206,9 @@ namespace pCampBot
/// Standard CreateConsole routine
/// </summary>
/// <returns></returns>
protected ConsoleBase CreateConsole()
protected CommandConsole CreateConsole()
{
return new ConsoleBase("Region");
return new LocalConsole("Region");
}
private void HandleShutdown(string module, string[] cmd)