Variable set prerequisite operator.
More...
#include <psquestprereqops.h>
Variable set prerequisite operator.
The character must have the specified variable set.
Definition at line 1238 of file psquestprereqops.h.
psQuestPrereqOpVariable::psQuestPrereqOpVariable |
( |
const char * |
name | ) |
|
|
inline |
Construct a variable operator.
- Parameters
-
variableName | The variable to check for assignment. |
Definition at line 1252 of file psquestprereqops.h.
psQuestPrereqOpVariable::psQuestPrereqOpVariable |
( |
const char * |
name, |
|
|
const char * |
value |
|
) |
| |
|
inline |
psQuestPrereqOpVariable::psQuestPrereqOpVariable |
( |
const char * |
name, |
|
|
double |
minv, |
|
|
double |
maxv |
|
) |
| |
|
inline |
virtual psQuestPrereqOpVariable::~psQuestPrereqOpVariable |
( |
| ) |
|
|
inlinevirtual |
virtual bool psQuestPrereqOpVariable::Check |
( |
psCharacter * |
character | ) |
|
|
virtual |
Check if the character has the variable defined.
- Parameters
-
character | The character that are checking for a prerequisite. |
- Returns
- True if the variable we are searching for was found.
Implements psQuestPrereqOp.
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
- Returns
- 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"/>
- Returns
- XML string for the prerequisite operator.
Implements psQuestPrereqOp.
double psQuestPrereqOpVariable::max |
|
protected |
double psQuestPrereqOpVariable::min |
|
protected |
csString psQuestPrereqOpVariable::variableName |
|
protected |
csString psQuestPrereqOpVariable::variableValue |
|
protected |
The documentation for this class was generated from the following file: