Planeshift
Public Member Functions | Public Attributes

AdminCmdDataMorph Class Reference

Class for morph command. More...

#include <adminmanager.h>

List of all members.

Public Member Functions

 AdminCmdDataMorph ()
 Creates obj for specified command that needs a reason.
 AdminCmdDataMorph (AdminManager *msgManager, MsgEntry *me, psAdminCmdMessage &msg, Client *client, WordArray &words)
 Parses the given message and stores its data.
virtual AdminCmdDataCreateCmdData (AdminManager *msgManager, MsgEntry *me, psAdminCmdMessage &msg, Client *client, WordArray &words)
 Creates an object containing the parsed data for morphing.
virtual csString GetHelpMessage ()
 Returns a helpmessage that fits to the parser of the class.
virtual ~AdminCmdDataMorph ()

Public Attributes

csString genderName
 name of the gender to morph to
csString raceName
 name of the race to morph to
csString scale
 optional scale
csString subCommand
 subcommand (if any)

Detailed Description

Class for morph command.

Definition at line 2149 of file adminmanager.h.


Constructor & Destructor Documentation

AdminCmdDataMorph::AdminCmdDataMorph ( ) [inline]

Creates obj for specified command that needs a reason.

Definition at line 2159 of file adminmanager.h.

AdminCmdDataMorph::AdminCmdDataMorph ( AdminManager msgManager,
MsgEntry me,
psAdminCmdMessage msg,
Client client,
WordArray words 
)

Parses the given message and stores its data.

Parameters:
msgManagermessage manager that handles this command
meThe incoming message from the GM
msgpsAdminCmdMessage containing the message
clientclient of the network communication
wordscommand message to parse
virtual AdminCmdDataMorph::~AdminCmdDataMorph ( ) [inline, virtual]

Definition at line 2172 of file adminmanager.h.


Member Function Documentation

virtual AdminCmdData* AdminCmdDataMorph::CreateCmdData ( AdminManager msgManager,
MsgEntry me,
psAdminCmdMessage msg,
Client client,
WordArray words 
) [virtual]

Creates an object containing the parsed data for morphing.

Parameters:
msgManagermessage manager that handles this command
meThe incoming message from the GM
msgpsAdminCmdMessage containing the message
clientclient of the network communication
wordscommand message to parse
Returns:
AdminCmdData* pointer to object containing parsed data. When parsing failed the valid flag is set to false.

Reimplemented from AdminCmdDataTarget.

virtual csString AdminCmdDataMorph::GetHelpMessage ( ) [virtual]

Returns a helpmessage that fits to the parser of the class.

Returns:
csString: a help message to send back to the client

Reimplemented from AdminCmdDataTarget.


Member Data Documentation

name of the gender to morph to

Definition at line 2154 of file adminmanager.h.

name of the race to morph to

Definition at line 2153 of file adminmanager.h.

optional scale

Definition at line 2155 of file adminmanager.h.

subcommand (if any)

Definition at line 2152 of file adminmanager.h.


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