Planeshift
|
Faction prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if the faction is above level. More... | |
virtual csPtr< psQuestPrereqOp > | Copy () |
Copy the prerequisite operator. More... | |
virtual csString | GetScriptOp () |
Convert the prerequisite operator to a xml string. More... | |
psQuestPrereqOpFaction (Faction *faction, int value, bool max) | |
Construct a faction operator. More... | |
virtual | ~psQuestPrereqOpFaction () |
Destructor. More... | |
![]() | |
virtual csString | GetScript () |
Convert the prerequisite script to a xml string. More... | |
virtual | ~psQuestPrereqOp () |
Destructor for the prerequisite operator. More... | |
Protected Attributes | |
Faction * | faction |
The faction that is to be checked. More... | |
bool | max |
int | value |
The faction level needed. More... | |
Faction prerequisite operator.
The given faction level is needed for this prerequisite to be true.
Definition at line 590 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 612 of file psquestprereqops.h.
|
inlinevirtual |
Destructor.
Definition at line 617 of file psquestprereqops.h.
|
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 |
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: <faction name="faction name" value="faction value"/>
Implements psQuestPrereqOp.
|
protected |
The faction that is to be checked.
Definition at line 596 of file psquestprereqops.h.
|
protected |
Definition at line 602 of file psquestprereqops.h.
|
protected |
The faction level needed.
Definition at line 601 of file psquestprereqops.h.