Shadowrun: Awakened 29 September 2011 - Build 871
RakNetCommandParser.h
Go to the documentation of this file.
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 
00017 namespace RakNet
00018 {
00019 class RakPeerInterface;
00020 
00022 class RAK_DLL_EXPORT RakNetCommandParser : public CommandParserInterface
00023 {
00024 public:
00025     // GetInstance() and DestroyInstance(instance*)
00026     STATIC_FACTORY_DECLARATIONS(RakNetCommandParser)
00027 
00028     RakNetCommandParser();
00029     ~RakNetCommandParser();
00030 
00038     bool OnCommand(const char *command, unsigned numParameters, char **parameterList, TransportInterface *transport, const SystemAddress &systemAddress, const char *originalString);
00039 
00043     const char *GetName(void) const;
00044 
00048     void SendHelp(TransportInterface *transport, const SystemAddress &systemAddress);
00049 
00052     void SetRakPeerInterface(RakNet::RakPeerInterface *rakPeer);
00053 protected:
00054 
00056     RakPeerInterface *peer;
00057 };
00058 
00059 } // namespace RakNet
00060 
00061 #endif
00062 
00063 #endif // _RAKNET_SUPPORT_*

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net