Planeshift
|
And Prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if all child prerequisites are true. | |
virtual csPtr< psQuestPrereqOp > | Copy () |
Copy the prerequisite operator. | |
virtual csString | GetScriptOp () |
Convert the prerequisite operator to a xml string. | |
virtual | ~psQuestPrereqOpAnd () |
Destructor for the and prerequisite operator. |
And Prerequisite operator.
A multi term and operator. Every prerequisite have to be true for this operator to be valid.
Definition at line 158 of file psquestprereqops.h.
virtual psQuestPrereqOpAnd::~psQuestPrereqOpAnd | ( | ) | [inline, virtual] |
Destructor for the and prerequisite operator.
Definition at line 165 of file psquestprereqops.h.
virtual bool psQuestPrereqOpAnd::Check | ( | psCharacter * | character | ) | [virtual] |
Check if all child prerequisites are true.
prerequisite = child1 and child2 and ... childN
character | The character that are checking for a prerequisite |
Implements psQuestPrereqOp.
virtual csPtr<psQuestPrereqOp> psQuestPrereqOpAnd::Copy | ( | ) | [virtual] |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
virtual csString psQuestPrereqOpAnd::GetScriptOp | ( | ) | [virtual] |
Convert the prerequisite operator to a xml string.
Convert the operator to the xml string: <and><child1/>...<childN/></and>
Implements psQuestPrereqOp.