|
Planeshift
|
Skill prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
| virtual bool | Check (psCharacter *character) |
| Check if the skill is in the range. More... | |
| virtual csPtr< psQuestPrereqOp > | Copy () |
| Copy the prerequisite operator. More... | |
| virtual csString | GetScriptOp () |
| Convert the prerequisite operator to a xml string. More... | |
| psQuestPrereqOpSkill (psSkillInfo *skill, unsigned int min, unsigned int max, bool allowBuffed) | |
| Construct a skill operator. More... | |
| virtual | ~psQuestPrereqOpSkill () |
| Destructor. More... | |
Public Member Functions inherited from psQuestPrereqOp | |
| virtual csString | GetScript () |
| Convert the prerequisite script to a xml string. More... | |
| virtual | ~psQuestPrereqOp () |
| Destructor for the prerequisite operator. More... | |
Protected Attributes | |
| bool | allowBuffed |
| Stores if we should allow buff to be taken in consideration. More... | |
| int | max |
| The maximum skill level. More... | |
| int | min |
| The minimum skill level. More... | |
| psSkillInfo * | skill |
| The skill name that is to be checked. More... | |
Skill prerequisite operator.
The given skill level is required to be between min and max for this operator to be true.
Definition at line 1353 of file psquestprereqops.h.
|
inline |
Construct a skill operator.
| skill | The skill which should be checked for. |
| min | The minimum acceptable for this prerequisite to be true. |
| max | The maximum acceptable for this prerequisite to be true. |
| allowBuffed | Declares if buff should be taken in consideration. |
Definition at line 1374 of file psquestprereqops.h.
|
inlinevirtual |
Destructor.
Definition at line 1379 of file psquestprereqops.h.
|
virtual |
Check if the skill is in the range.
| character | The character that are checking for a prerequisite |
Implements psQuestPrereqOp.
|
virtual |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
|
virtual |
Convert the prerequisite operator to a xml string.
Convert the operator into the xml string: <skill name="skill name" min="0" max="0" allowbuffed="false" />
Implements psQuestPrereqOp.
|
protected |
Stores if we should allow buff to be taken in consideration.
Definition at line 1363 of file psquestprereqops.h.
|
protected |
The maximum skill level.
Definition at line 1362 of file psquestprereqops.h.
|
protected |
The minimum skill level.
Definition at line 1361 of file psquestprereqops.h.
|
protected |
The skill name that is to be checked.
Definition at line 1359 of file psquestprereqops.h.