Planeshift
|
#include <cmdbase.h>
Public Member Functions | |
virtual const char * | HandleCommand (const char *cmd)=0 |
Interprets a received message and executes the command. | |
virtual void | HandleMessage (MsgEntry *msg, Client *) |
Interprets a received message and executes the command. | |
virtual void | HandleMessage (MsgEntry *msg)=0 |
psCmdBase (ClientMsgHandler *mh, CmdHandler *ch, iObjectRegistry *obj) | |
void | Report (int severity, const char *msgtype, const char *description,...) |
virtual bool | Setup (ClientMsgHandler *mh, CmdHandler *ch) |
virtual bool | Verify (MsgEntry *, unsigned int, Client *&) |
virtual | ~psCmdBase () |
Protected Attributes | |
CmdHandler * | cmdsource |
ClientMsgHandler * | msgqueue |
iObjectRegistry * | objreg |
psCmdBase::psCmdBase | ( | ClientMsgHandler * | mh, |
CmdHandler * | ch, | ||
iObjectRegistry * | obj | ||
) |
virtual const char* psCmdBase::HandleCommand | ( | const char * | cmd | ) | [pure virtual] |
Interprets a received message and executes the command.
char * returned can be an error message to display.
Implements iCmdSubscriber.
Implemented in psAdminCommands, psGroupCommands, psGuildCommands, psUserCommands, psUtilityCommands, pawsChatWindow, pawsGmGUIWindow, pawsLootWindow, pawsPetitionGMWindow, pawsPetitionWindow, pawsQuestRewardWindow, pawsQuestListWindow, psMainWidget, GUIHandler, and psCamera.
virtual void psCmdBase::HandleMessage | ( | MsgEntry * | msg | ) | [pure virtual] |
Interprets a received message and executes the command.
Implements iNetSubscriber.
void psCmdBase::Report | ( | int | severity, |
const char * | msgtype, | ||
const char * | description, | ||
... | |||
) |
virtual bool psCmdBase::Setup | ( | ClientMsgHandler * | mh, |
CmdHandler * | ch | ||
) | [virtual] |
Implements iNetSubscriber.
CmdHandler* psCmdBase::cmdsource [protected] |
Reimplemented in pawsGmGUIWindow.
ClientMsgHandler* psCmdBase::msgqueue [protected] |
iObjectRegistry* psCmdBase::objreg [protected] |