Planeshift
|
Base class for all commands that need a target to work on. More...
#include <adminmanager.h>
Public Member Functions | |
AdminCmdDataTarget (csString commandName, int targetTypes) | |
Creates obj for the given command and allowed target types. | |
AdminCmdDataTarget (csString commandName, int targetTypes, AdminManager *msgManager, MsgEntry *me, psAdminCmdMessage &msg, Client *client, WordArray &words) | |
Creates obj for the given command and allowed target types. | |
virtual AdminCmdData * | CreateCmdData (AdminManager *msgManager, MsgEntry *me, psAdminCmdMessage &msg, Client *client, WordArray &words) |
Creates a command data object containing the parsed data. | |
virtual csString | GetHelpMessage () |
Retrieve help message for the command that fits to the data. | |
virtual bool | IsQuietInvalid () |
Used to invalidate commands with area as they will be handled elsewhere. | |
virtual bool | LogGMCommand (Client *gmClient, const char *cmd) |
Logs the game master command. | |
virtual | ~AdminCmdDataTarget () |
Base class for all commands that need a target to work on.
Definition at line 641 of file adminmanager.h.
AdminCmdDataTarget::AdminCmdDataTarget | ( | csString | commandName, |
int | targetTypes | ||
) | [inline] |
Creates obj for the given command and allowed target types.
commandName | name of the command (e.g. /ban) |
targetTypes | bitmask based on the ADMINCMD_TARGET_TYPES |
Definition at line 648 of file adminmanager.h.
AdminCmdDataTarget::AdminCmdDataTarget | ( | csString | commandName, |
int | targetTypes, | ||
AdminManager * | msgManager, | ||
MsgEntry * | me, | ||
psAdminCmdMessage & | msg, | ||
Client * | client, | ||
WordArray & | words | ||
) |
Creates obj for the given command and allowed target types.
commandName | name of the command (e.g. /ban) |
targetTypes | bitmask based on the ADMINCMD_TARGET_TYPES |
msgManager | message manager that handles this command |
me | The incoming message from the GM |
msg | psAdminCmdMessage containing the message |
client | client of the network communication |
words | command message to parse |
virtual AdminCmdDataTarget::~AdminCmdDataTarget | ( | ) | [inline, virtual] |
Definition at line 663 of file adminmanager.h.
virtual AdminCmdData* AdminCmdDataTarget::CreateCmdData | ( | AdminManager * | msgManager, |
MsgEntry * | me, | ||
psAdminCmdMessage & | msg, | ||
Client * | client, | ||
WordArray & | words | ||
) | [virtual] |
Creates a command data object containing the parsed data.
The created object is most likely a derived class that parses the given command string and stores the data internally for further use. That kind of new object is passed back by this function.
msgManager | message manager that handles this command |
me | The incoming message from the GM |
msg | psAdminCmdMessage containing the message |
client | client of the network communication |
words | command message to parse |
Reimplemented from AdminCmdData.
Reimplemented in AdminCmdDataTargetReason, AdminCmdDataDeath, AdminCmdDataDeleteChar, AdminCmdDataUpdateRespawn, AdminCmdDataBan, AdminCmdDataKillNPC, AdminCmdDataPercept, AdminCmdDataChangeNPCType, AdminCmdDataDebugNPC, AdminCmdDataDebugTribe, AdminCmdDataSetStackable, AdminCmdDataInfo, AdminCmdDataItem, AdminCmdDataKey, AdminCmdDataRunScript, AdminCmdDataCrystal, AdminCmdDataTeleport, AdminCmdDataSlide, AdminCmdDataChangeName, AdminCmdDataChangeGuildLeader, AdminCmdDataImpersonate, AdminCmdDataDeputize, AdminCmdDataAward, AdminCmdDataItemTarget, AdminCmdDataCheckItem, AdminCmdDataModify, AdminCmdDataMorph, AdminCmdDataScale, AdminCmdDataSetSkill, AdminCmdDataSet, AdminCmdDataSetLabelColor, AdminCmdDataBadText, AdminCmdDataQuest, AdminCmdDataSetQuality, AdminCmdDataSetTrait, AdminCmdDataSetItem, AdminCmdDataListWarnings, AdminCmdDataSetKillExp, and AdminCmdDataAssignFaction.
virtual csString AdminCmdDataTarget::GetHelpMessage | ( | ) | [virtual] |
Retrieve help message for the command that fits to the data.
Reimplemented from AdminCmdData.
Reimplemented in AdminCmdDataTargetReason, AdminCmdDataDeath, AdminCmdDataDeleteChar, AdminCmdDataUpdateRespawn, AdminCmdDataBan, AdminCmdDataKillNPC, AdminCmdDataPercept, AdminCmdDataChangeNPCType, AdminCmdDataDebugNPC, AdminCmdDataDebugTribe, AdminCmdDataSetStackable, AdminCmdDataInfo, AdminCmdDataItem, AdminCmdDataKey, AdminCmdDataRunScript, AdminCmdDataCrystal, AdminCmdDataTeleport, AdminCmdDataSlide, AdminCmdDataChangeName, AdminCmdDataChangeGuildLeader, AdminCmdDataImpersonate, AdminCmdDataDeputize, AdminCmdDataAward, AdminCmdDataItemTarget, AdminCmdDataCheckItem, AdminCmdDataModify, AdminCmdDataMorph, AdminCmdDataScale, AdminCmdDataSetSkill, AdminCmdDataSet, AdminCmdDataSetLabelColor, AdminCmdDataBadText, AdminCmdDataQuest, AdminCmdDataSetQuality, AdminCmdDataSetTrait, AdminCmdDataSetItem, AdminCmdDataListWarnings, AdminCmdDataSetKillExp, and AdminCmdDataAssignFaction.
virtual bool AdminCmdDataTarget::IsQuietInvalid | ( | ) | [inline, virtual] |
Used to invalidate commands with area as they will be handled elsewhere.
Reimplemented from AdminCmdData.
Definition at line 696 of file adminmanager.h.
virtual bool AdminCmdDataTarget::LogGMCommand | ( | Client * | gmClient, |
const char * | cmd | ||
) | [virtual] |
Logs the game master command.
gmClient | issuing the command |
cmd | command message issued |
Reimplemented from AdminCmdData.