Planeshift
psUtilityCommands Class Reference

Class to handle general player commands. More...

#include <cmdutil.h>

Public Member Functions

virtual const char * HandleCommand (const char *cmd)
 Interprets a received message and executes the command. More...
 
virtual void HandleMessage (MsgEntry *msg)
 
 psUtilityCommands (ClientMsgHandler *mh, CmdHandler *ch, iObjectRegistry *obj)
 
csString SaveCamera ()
 
virtual ~psUtilityCommands ()
 
- Public Member Functions inherited from psCmdBase
virtual void HandleMessage (MsgEntry *msg, Client *)
 Interprets a received message and executes the command. More...
 
 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 ()
 

Static Public Member Functions

static void HandleConfirmButton (bool answeredYes, void *thisptr)
 
static void HandleQuit (bool answeredYes, void *thisPtr)
 Handles the quit dialog box confirmation on /quit. More...
 

Protected Attributes

csString nocommands
 
csString text
 
csString yescommands
 
- Protected Attributes inherited from psCmdBase
CmdHandlercmdsource
 
ClientMsgHandlermsgqueue
 
iObjectRegistry * objreg
 

Detailed Description

Class to handle general player commands.

Definition at line 38 of file cmdutil.h.

Constructor & Destructor Documentation

psUtilityCommands::psUtilityCommands ( ClientMsgHandler mh,
CmdHandler ch,
iObjectRegistry *  obj 
)
virtual psUtilityCommands::~psUtilityCommands ( )
virtual

Member Function Documentation

virtual const char* psUtilityCommands::HandleCommand ( const char *  cmd)
virtual

Interprets a received message and executes the command.

char * returned can be an error message to display.

Implements psCmdBase.

static void psUtilityCommands::HandleConfirmButton ( bool  answeredYes,
void *  thisptr 
)
static
virtual void psUtilityCommands::HandleMessage ( MsgEntry msg)
virtual

Implements psCmdBase.

static void psUtilityCommands::HandleQuit ( bool  answeredYes,
void *  thisPtr 
)
static

Handles the quit dialog box confirmation on /quit.

csString psUtilityCommands::SaveCamera ( )

Member Data Documentation

csString psUtilityCommands::nocommands
protected

Definition at line 61 of file cmdutil.h.

csString psUtilityCommands::text
protected

Definition at line 59 of file cmdutil.h.

csString psUtilityCommands::yescommands
protected

Definition at line 60 of file cmdutil.h.


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