00001 00002 00003 00004 00005 00006 00007 00008 #include "NativeFeatureIncludes.h" 00009 #if _RAKNET_SUPPORT_RakNetCommandParser==1 00010 00011 #ifndef __RAKNET_COMMAND_PARSER 00012 #define __RAKNET_COMMAND_PARSER 00013 00014 #include "CommandParserInterface.h" 00015 #include "Export.h" 00016 class RakPeerInterface; 00017 00019 class RAK_DLL_EXPORT RakNetCommandParser : public CommandParserInterface 00020 { 00021 public: 00022 RakNetCommandParser(); 00023 ~RakNetCommandParser(); 00024 00032 bool OnCommand(const char *command, unsigned numParameters, char **parameterList, TransportInterface *transport, SystemAddress systemAddress, const char *originalString); 00033 00037 const char *GetName(void) const; 00038 00042 void SendHelp(TransportInterface *transport, SystemAddress systemAddress); 00043 00046 void SetRakPeerInterface(RakPeerInterface *rakPeer); 00047 protected: 00048 00050 RakPeerInterface *peer; 00051 }; 00052 00053 #endif 00054 00055 #endif // _RAKNET_SUPPORT_*