Planeshift
|
Xor prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if value of XORs between prerequisites is true. | |
virtual csPtr< psQuestPrereqOp > | Copy () |
Copy the prerequisite operator. | |
virtual csString | GetScriptOp () |
Convert the prerequisite operator to a xml string. | |
virtual | ~psQuestPrereqOpXor () |
Destructor for the or prerequisite operator. |
Xor prerequisite operator.
A multi term or operator. Value of XORs between prerequisites must be true.
Definition at line 1304 of file psquestprereqops.h.
virtual psQuestPrereqOpXor::~psQuestPrereqOpXor | ( | ) | [inline, virtual] |
Destructor for the or prerequisite operator.
Definition at line 1311 of file psquestprereqops.h.
virtual bool psQuestPrereqOpXor::Check | ( | psCharacter * | character | ) | [virtual] |
Check if value of XORs between prerequisites is true.
prerequisite = child1 or child 2 or ... childN
character | The character that are checking for a prerequisite |
Implements psQuestPrereqOp.
virtual csPtr<psQuestPrereqOp> psQuestPrereqOpXor::Copy | ( | ) | [virtual] |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
virtual csString psQuestPrereqOpXor::GetScriptOp | ( | ) | [virtual] |
Convert the prerequisite operator to a xml string.
Convert the operator to the xml string: <xor><child1/>...<childN/></xor>
Implements psQuestPrereqOp.