|
Planeshift
|
Faction prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
| virtual bool | Check (psCharacter *character) |
| Check if the faction is above level. | |
| virtual csPtr< psQuestPrereqOp > | Copy () |
| Copy the prerequisite operator. | |
| virtual csString | GetScriptOp () |
| Convert the prerequisite operator to a xml string. | |
| psQuestPrereqOpFaction (Faction *faction, int value, bool max) | |
| Construct a faction operator. | |
| virtual | ~psQuestPrereqOpFaction () |
| Destructor. | |
Protected Attributes | |
| Faction * | faction |
| The faction that is to be checked. | |
| bool | max |
| int | value |
| The faction level needed. | |
Faction prerequisite operator.
The given faction level is needed for this prerequisite to be true.
Definition at line 587 of file psquestprereqops.h.
Construct a faction operator.
| faction | The quest that need to be assigned. |
| value | The value |
| max | Is the level a max. |
Definition at line 609 of file psquestprereqops.h.
| virtual psQuestPrereqOpFaction::~psQuestPrereqOpFaction | ( | ) | [inline, virtual] |
Destructor.
Definition at line 614 of file psquestprereqops.h.
| virtual bool psQuestPrereqOpFaction::Check | ( | psCharacter * | character | ) | [virtual] |
Check if the faction is above level.
prerequisite = Is the faction positive.
| character | The character that are checking for a prerequisite |
Implements psQuestPrereqOp.
| virtual csPtr<psQuestPrereqOp> psQuestPrereqOpFaction::Copy | ( | ) | [virtual] |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
| virtual csString psQuestPrereqOpFaction::GetScriptOp | ( | ) | [virtual] |
Convert the prerequisite operator to a xml string.
Convert the operator into the xml string: <faction name="faction name" value="faction value"/>
Implements psQuestPrereqOp.
Faction* psQuestPrereqOpFaction::faction [protected] |
The faction that is to be checked.
Definition at line 593 of file psquestprereqops.h.
bool psQuestPrereqOpFaction::max [protected] |
Definition at line 599 of file psquestprereqops.h.
int psQuestPrereqOpFaction::value [protected] |
The faction level needed.
Definition at line 598 of file psquestprereqops.h.
1.7.3