Planeshift
|
advisor points prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if within the advisor points range. | |
virtual csPtr< psQuestPrereqOp > | Copy () |
Copy the prerequisite operator. | |
virtual csString | GetScriptOp () |
Convert the prerequisite operator to a xml string. | |
psQuestPrereqOpAdvisorPoints (int minPoints, int maxPoints, csString type) | |
Construct an advisor points operator. | |
virtual | ~psQuestPrereqOpAdvisorPoints () |
Protected Attributes | |
int | maxPoints |
int | minPoints |
csString | type |
advisor points prerequisite operator.
The advisorpoints must be beetwen maxPoints and minPoints.
Definition at line 1080 of file psquestprereqops.h.
psQuestPrereqOpAdvisorPoints::psQuestPrereqOpAdvisorPoints | ( | int | minPoints, |
int | maxPoints, | ||
csString | type | ||
) | [inline] |
Construct an advisor points operator.
minPoints | Minimal advisor points. |
maxPoints | Maximal advisor points. |
type | Type of the check. |
Definition at line 1095 of file psquestprereqops.h.
virtual psQuestPrereqOpAdvisorPoints::~psQuestPrereqOpAdvisorPoints | ( | ) | [inline, virtual] |
Definition at line 1097 of file psquestprereqops.h.
virtual bool psQuestPrereqOpAdvisorPoints::Check | ( | psCharacter * | character | ) | [virtual] |
Check if within the advisor points range.
character | The character that are checking for a prerequisite. |
Implements psQuestPrereqOp.
virtual csPtr<psQuestPrereqOp> psQuestPrereqOpAdvisorPoints::Copy | ( | ) | [virtual] |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
virtual csString psQuestPrereqOpAdvisorPoints::GetScriptOp | ( | ) | [virtual] |
Convert the prerequisite operator to a xml string.
Convert the operator into the xml string: <advisorpoints min="-min" max="-max" type="min/max/both"/>
Implements psQuestPrereqOp.
int psQuestPrereqOpAdvisorPoints::maxPoints [protected] |
Definition at line 1083 of file psquestprereqops.h.
int psQuestPrereqOpAdvisorPoints::minPoints [protected] |
Definition at line 1083 of file psquestprereqops.h.
csString psQuestPrereqOpAdvisorPoints::type [protected] |
Definition at line 1084 of file psquestprereqops.h.