Planeshift
Public Member Functions | Protected Attributes

psCmdBase Class Reference

#include <cmdbase.h>

List of all members.

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

CmdHandlercmdsource
ClientMsgHandlermsgqueue
iObjectRegistry * objreg

Detailed Description

Definition at line 42 of file cmdbase.h.


Constructor & Destructor Documentation

psCmdBase::psCmdBase ( ClientMsgHandler mh,
CmdHandler ch,
iObjectRegistry *  obj 
)
virtual psCmdBase::~psCmdBase ( ) [inline, virtual]

Definition at line 52 of file cmdbase.h.


Member Function Documentation

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]
virtual void psCmdBase::HandleMessage ( MsgEntry msg,
Client client 
) [inline, virtual]

Interprets a received message and executes the command.

Implements iNetSubscriber.

Definition at line 59 of file cmdbase.h.

void psCmdBase::Report ( int  severity,
const char *  msgtype,
const char *  description,
  ... 
)
virtual bool psCmdBase::Setup ( ClientMsgHandler mh,
CmdHandler ch 
) [virtual]
virtual bool psCmdBase::Verify ( MsgEntry ,
unsigned int  ,
Client *&   
) [inline, virtual]

Implements iNetSubscriber.

Definition at line 61 of file cmdbase.h.


Member Data Documentation

Reimplemented in pawsGmGUIWindow.

Definition at line 46 of file cmdbase.h.

Definition at line 45 of file cmdbase.h.

iObjectRegistry* psCmdBase::objreg [protected]

Definition at line 47 of file cmdbase.h.


The documentation for this class was generated from the following file: