Planeshift
|
Class for parsing rewards data from a command string and storing it. More...
#include <adminmanager.h>
Public Member Functions | |
AdminCmdRewardParser () | |
Creates a reward parser with the default reward types. | |
virtual csString | GetHelpMessage () |
Returns a help message describing the rewards syntax. | |
bool | ParseWords (size_t index, const WordArray &words) |
Parses the list of words starting at index. | |
~AdminCmdRewardParser () | |
Public Attributes | |
csString | error |
only set when an error occured during parsing | |
csPDelArray< psRewardData > | rewards |
extracted rewards | |
AdminCmdSubCommandParser | rewardTypes |
reward types |
Class for parsing rewards data from a command string and storing it.
Definition at line 556 of file adminmanager.h.
AdminCmdRewardParser::AdminCmdRewardParser | ( | ) |
Creates a reward parser with the default reward types.
AdminCmdRewardParser::~AdminCmdRewardParser | ( | ) | [inline] |
Definition at line 570 of file adminmanager.h.
virtual csString AdminCmdRewardParser::GetHelpMessage | ( | ) | [virtual] |
Returns a help message describing the rewards syntax.
bool AdminCmdRewardParser::ParseWords | ( | size_t | index, |
const WordArray & | words | ||
) |
Parses the list of words starting at index.
index | to start the parsing in the words array |
words | array containing a commands parameters |
csString AdminCmdRewardParser::error |
only set when an error occured during parsing
Definition at line 562 of file adminmanager.h.
csPDelArray<psRewardData> AdminCmdRewardParser::rewards |
extracted rewards
Definition at line 561 of file adminmanager.h.
reward types
Definition at line 559 of file adminmanager.h.