Planeshift
Public Member Functions | Static Public Member Functions | Protected Attributes

psUtilityCommands Class Reference

Class to handle general player commands. More...

#include <cmdutil.h>

List of all members.

Public Member Functions

virtual const char * HandleCommand (const char *cmd)
 Interprets a received message and executes the command.
virtual void HandleMessage (MsgEntry *msg)
 psUtilityCommands (ClientMsgHandler *mh, CmdHandler *ch, iObjectRegistry *obj)
csString SaveCamera ()
virtual ~psUtilityCommands ()

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.

Protected Attributes

csString nocommands
csString text
csString yescommands

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: