Planeshift
|
Trait prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if the specified trait is present. | |
virtual csPtr< psQuestPrereqOp > | Copy () |
Copy the prerequisite operator. | |
virtual csString | GetScriptOp () |
Convert the prerequisite operator to a xml string. | |
psQuestPrereqOpTrait (const char *traitName, csString traitLocationString) | |
Construct a Trait operator. | |
virtual | ~psQuestPrereqOpTrait () |
Protected Attributes | |
PSTRAIT_LOCATION | traitLocation |
csString | traitName |
Trait prerequisite operator.
The actor must have a certain Trait in a certain position.
Definition at line 771 of file psquestprereqops.h.
psQuestPrereqOpTrait::psQuestPrereqOpTrait | ( | const char * | traitName, |
csString | traitLocationString | ||
) | [inline] |
Construct a Trait operator.
Definition at line 783 of file psquestprereqops.h.
virtual psQuestPrereqOpTrait::~psQuestPrereqOpTrait | ( | ) | [inline, virtual] |
Definition at line 797 of file psquestprereqops.h.
virtual bool psQuestPrereqOpTrait::Check | ( | psCharacter * | character | ) | [virtual] |
Check if the specified trait is present.
character | The character that are checking for a prerequisite. |
Implements psQuestPrereqOp.
virtual csPtr<psQuestPrereqOp> psQuestPrereqOpTrait::Copy | ( | ) | [virtual] |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
virtual csString psQuestPrereqOpTrait::GetScriptOp | ( | ) | [virtual] |
Convert the prerequisite operator to a xml string.
Convert the operator into the xml string: <activemagic name="-activemagic"/>
Implements psQuestPrereqOp.
PSTRAIT_LOCATION psQuestPrereqOpTrait::traitLocation [protected] |
Definition at line 775 of file psquestprereqops.h.
csString psQuestPrereqOpTrait::traitName [protected] |
Definition at line 774 of file psquestprereqops.h.