Planeshift
Public Member Functions | Public Attributes

AdminCmdDataPercept Class Reference

Class for percepting a npc. More...

#include <adminmanager.h>

List of all members.

Public Member Functions

 AdminCmdDataPercept ()
 Creates obj for specified command that kills/reloads a npc.
 AdminCmdDataPercept (AdminManager *msgManager, MsgEntry *me, psAdminCmdMessage &msg, Client *client, WordArray &words)
 Parses the given message for percepting 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 ~AdminCmdDataPercept ()

Public Attributes

csString perception
 the perception to fire.
csString type
 the type data for the perception.

Detailed Description

Class for percepting a npc.

Definition at line 953 of file adminmanager.h.


Constructor & Destructor Documentation

AdminCmdDataPercept::AdminCmdDataPercept ( ) [inline]

Creates obj for specified command that kills/reloads a npc.

Definition at line 961 of file adminmanager.h.

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

Parses the given message for percepting 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 AdminCmdDataPercept::~AdminCmdDataPercept ( ) [inline, virtual]

Definition at line 974 of file adminmanager.h.


Member Function Documentation

virtual AdminCmdData* AdminCmdDataPercept::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 AdminCmdDataPercept::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 perception to fire.

Definition at line 956 of file adminmanager.h.

the type data for the perception.

Definition at line 957 of file adminmanager.h.


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