Planeshift
Public Member Functions | Public Attributes

AdminCmdDataChangeNPCType Class Reference

Class for changing npc types. More...

#include <adminmanager.h>

List of all members.

Public Member Functions

 AdminCmdDataChangeNPCType ()
 Creates obj for specified command that changes npctype of a npc.
 AdminCmdDataChangeNPCType (AdminManager *msgManager, MsgEntry *me, psAdminCmdMessage &msg, Client *client, WordArray &words)
 Parses the given message to change type of a npc.
virtual AdminCmdDataCreateCmdData (AdminManager *msgManager, MsgEntry *me, psAdminCmdMessage &msg, Client *client, WordArray &words)
 Creates a command data object of the current class containing the parsed data.
virtual csString GetHelpMessage ()
 Returns a helpmessage that fits to the parser of the class.
virtual ~AdminCmdDataChangeNPCType ()

Public Attributes

csString npcType
 The type of npc which will be assigned.

Detailed Description

Class for changing npc types.

Definition at line 995 of file adminmanager.h.


Constructor & Destructor Documentation

AdminCmdDataChangeNPCType::AdminCmdDataChangeNPCType ( ) [inline]

Creates obj for specified command that changes npctype of a npc.

Definition at line 1002 of file adminmanager.h.

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

Parses the given message to change type of a npc.

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 AdminCmdDataChangeNPCType::~AdminCmdDataChangeNPCType ( ) [inline, virtual]

Definition at line 1015 of file adminmanager.h.


Member Function Documentation

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

Creates a command data object of the current class containing the parsed 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
Returns:
AdminCmdData* pointer to object containing parsed data. When parsing failed the valid flag is set to false.

Reimplemented from AdminCmdDataTarget.

virtual csString AdminCmdDataChangeNPCType::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

The type of npc which will be assigned.

Definition at line 998 of file adminmanager.h.


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