Planeshift
psGroupCommands Class Reference

Manager class to help with handling of 'group' commands. More...

#include <cmdgroups.h>

Public Member Functions

virtual const char * HandleCommand (const char *cmd)
 Handles a command to send to the server. More...
 
virtual void HandleMessage (MsgEntry *msg)
 
 psGroupCommands (ClientMsgHandler *mh, CmdHandler *ch, iObjectRegistry *obj)
 
virtual ~psGroupCommands ()
 
- 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from psCmdBase
CmdHandlercmdsource
 
ClientMsgHandlermsgqueue
 
iObjectRegistry * objreg
 

Detailed Description

Manager class to help with handling of 'group' commands.

Definition at line 38 of file cmdgroups.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Handles a command to send to the server.

The following commands are supported as the command parameter:

  • /invite
  • /disband disband group (leader only)
  • /groupremove remove player from group (leader only)
  • /leavegroup name group level something (ranks)
  • /groupmembers see list of members (optional level #)
  • /confirmgroupjoin
Returns
NULL

Implements psCmdBase.

virtual void psGroupCommands::HandleMessage ( MsgEntry msg)
virtual

Implements psCmdBase.


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