Planeshift
|
Variable set prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if the character has the variable defined. | |
virtual csPtr< psQuestPrereqOp > | Copy () |
Copy the prerequisite operator. | |
virtual csString | GetScriptOp () |
Convert the prerequisite operator to a xml string. | |
psQuestPrereqOpVariable (const char *name, double minv, double maxv) | |
psQuestPrereqOpVariable (const psQuestPrereqOpVariable &other) | |
psQuestPrereqOpVariable (const char *name, const char *value) | |
psQuestPrereqOpVariable (const char *name) | |
Construct a variable operator. | |
virtual | ~psQuestPrereqOpVariable () |
Protected Attributes | |
double | max |
double | min |
csString | variableName |
csString | variableValue |
Variable set prerequisite operator.
The character must have the specified variable set.
Definition at line 1235 of file psquestprereqops.h.
psQuestPrereqOpVariable::psQuestPrereqOpVariable | ( | const char * | name | ) | [inline] |
Construct a variable operator.
variableName | The variable to check for assignment. |
Definition at line 1249 of file psquestprereqops.h.
psQuestPrereqOpVariable::psQuestPrereqOpVariable | ( | const char * | name, |
const char * | value | ||
) | [inline] |
Definition at line 1253 of file psquestprereqops.h.
psQuestPrereqOpVariable::psQuestPrereqOpVariable | ( | const char * | name, |
double | minv, | ||
double | maxv | ||
) | [inline] |
Definition at line 1257 of file psquestprereqops.h.
psQuestPrereqOpVariable::psQuestPrereqOpVariable | ( | const psQuestPrereqOpVariable & | other | ) | [inline] |
Definition at line 1261 of file psquestprereqops.h.
virtual psQuestPrereqOpVariable::~psQuestPrereqOpVariable | ( | ) | [inline, virtual] |
Definition at line 1267 of file psquestprereqops.h.
virtual bool psQuestPrereqOpVariable::Check | ( | psCharacter * | character | ) | [virtual] |
Check if the character has the variable defined.
character | The character that are checking for a prerequisite. |
Implements psQuestPrereqOp.
virtual csPtr<psQuestPrereqOp> psQuestPrereqOpVariable::Copy | ( | ) | [virtual] |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
virtual csString psQuestPrereqOpVariable::GetScriptOp | ( | ) | [virtual] |
Convert the prerequisite operator to a xml string.
Convert the operator into the xml string: <variable name="variablename"/>
Implements psQuestPrereqOp.
double psQuestPrereqOpVariable::max [protected] |
Definition at line 1240 of file psquestprereqops.h.
double psQuestPrereqOpVariable::min [protected] |
Definition at line 1240 of file psquestprereqops.h.
csString psQuestPrereqOpVariable::variableName [protected] |
Definition at line 1238 of file psquestprereqops.h.
csString psQuestPrereqOpVariable::variableValue [protected] |
Definition at line 1239 of file psquestprereqops.h.