00001 /* MANTAINER: Bernard */ 00002 00003 #ifndef _COMMANDER_CLIENT_H 00004 #define _COMMANDER_CLIENT_H 00005 00006 #include "commander.h" 00007 #include <string> 00008 #include <sstream> 00009 00010 00017 class CommanderClient : public Commander 00018 { 00019 public: 00020 CommanderClient() { }; 00021 virtual ~CommanderClient(){ }; 00022 00023 00024 protected: 00025 00033 virtual void processCommand(const std::string &command, int playerID); 00034 00035 00041 void command_to_server(const std::string &command); 00042 00043 void command_quit(std::stringstream &args); 00044 void command_help(std::stringstream &args); 00045 void command_getvar(std::stringstream &args); 00046 void command_setvar(std::stringstream &args); 00047 void command_players(std::stringstream &args); 00048 00049 }; 00050 00051 #endif
1.4.5