src/Console.h

00001 #ifndef CONSOLE_H_
00002 #define CONSOLE_H_
00003 
00004 #include <iostream>
00005 
00006 #include "SDL.h"
00007 #include "SDL_thread.h"
00008 
00009 class CommandManager;   // Forward declarations.
00010 class Server;
00011 
00012 using namespace std;
00013 
00014 class Console; // forward declaration.
00015 
00016 struct ConsoleData{
00017         Console* self;                  
00018         string banner;                  
00019         SDL_Thread* myThread;   
00020         bool running;                   
00021 };
00029 class Console
00030 {
00031 public:
00039         Console(Server * server);
00040         
00047         virtual ~Console();
00048         
00061         static int startThread(void * data);
00062         
00069         void startConsole(ConsoleData  * data); 
00070         
00080          void setServer(Server * myServer);
00081         
00082 private:
00083         
00084         struct ConsoleData data;        
00085         CommandManager* cmdManager;     
00087 };
00088 
00089 #endif /*CONSOLE_H_*/

Generated on Mon Dec 3 04:30:12 2007 for lo-testserver by  doxygen 1.3.9.1