|
Planeshift
|
Skill prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
| virtual bool | Check (psCharacter *character) |
| Check if the skill is in the range. | |
| virtual csPtr< psQuestPrereqOp > | Copy () |
| Copy the prerequisite operator. | |
| virtual csString | GetScriptOp () |
| Convert the prerequisite operator to a xml string. | |
| psQuestPrereqOpSkill (psSkillInfo *skill, unsigned int min, unsigned int max, bool allowBuffed) | |
| Construct a skill operator. | |
| virtual | ~psQuestPrereqOpSkill () |
| Destructor. | |
Protected Attributes | |
| bool | allowBuffed |
| Stores if we should allow buff to be taken in consideration. | |
| int | max |
| The maximum skill level. | |
| int | min |
| The minimum skill level. | |
| psSkillInfo * | skill |
| The skill name that is to be checked. | |
Skill prerequisite operator.
The given skill level is required to be between min and max for this operator to be true.
Definition at line 1350 of file psquestprereqops.h.
| psQuestPrereqOpSkill::psQuestPrereqOpSkill | ( | psSkillInfo * | skill, |
| unsigned int | min, | ||
| unsigned int | max, | ||
| bool | allowBuffed | ||
| ) | [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 1371 of file psquestprereqops.h.
| virtual psQuestPrereqOpSkill::~psQuestPrereqOpSkill | ( | ) | [inline, virtual] |
Destructor.
Definition at line 1376 of file psquestprereqops.h.
| virtual bool psQuestPrereqOpSkill::Check | ( | psCharacter * | character | ) | [virtual] |
Check if the skill is in the range.
| character | The character that are checking for a prerequisite |
Implements psQuestPrereqOp.
| virtual csPtr<psQuestPrereqOp> psQuestPrereqOpSkill::Copy | ( | ) | [virtual] |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
| virtual csString psQuestPrereqOpSkill::GetScriptOp | ( | ) | [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.
bool psQuestPrereqOpSkill::allowBuffed [protected] |
Stores if we should allow buff to be taken in consideration.
Definition at line 1360 of file psquestprereqops.h.
int psQuestPrereqOpSkill::max [protected] |
The maximum skill level.
Definition at line 1359 of file psquestprereqops.h.
int psQuestPrereqOpSkill::min [protected] |
The minimum skill level.
Definition at line 1358 of file psquestprereqops.h.
psSkillInfo* psQuestPrereqOpSkill::skill [protected] |
The skill name that is to be checked.
Definition at line 1356 of file psquestprereqops.h.
1.7.3