Planeshift
|
Quest Completed Category operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if the charater have completed a number quests with the given category. More... | |
virtual csPtr< psQuestPrereqOp > | Copy () |
Copy the prerequisite operator. More... | |
virtual csString | GetScriptOp () |
Convert the prerequisite operator to a xml string. More... | |
psQuestPrereqOpQuestCompletedCategory (csString quest_category, int min_required, int max_required) | |
Construct a quest completed category opererator. More... | |
virtual | ~psQuestPrereqOpQuestCompletedCategory () |
Destructor for the quest completed category prerequisite operator. More... | |
![]() | |
virtual csString | GetScript () |
Convert the prerequisite script to a xml string. More... | |
virtual | ~psQuestPrereqOp () |
Destructor for the prerequisite operator. More... | |
Protected Attributes | |
csString | category |
The category that will be tested for. More... | |
int | max |
The maximum of quest in the given category that need to be completed. More... | |
int | min |
The minimum of quest in the given category that need to be completed. More... | |
Quest Completed Category operator.
Need to have completed a number of quests for a given category.
Definition at line 515 of file psquestprereqops.h.
|
inline |
Construct a quest completed category opererator.
quest_category | The category that the user is tested agains. |
min_required | The minimum of quests needed. There are no lower limit if this is set to -1. |
max_required | The maximum of quests needed. There are no upper limit if this is set to -1. |
Definition at line 544 of file psquestprereqops.h.
|
inlinevirtual |
Destructor for the quest completed category prerequisite operator.
Definition at line 551 of file psquestprereqops.h.
|
virtual |
Check if the charater have completed a number quests with the given category.
number = number of quests completed in the given category. prerequisite = number >= min and number <= max
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: <completed category="category" [min="min"] [max="max"] />
Implements psQuestPrereqOp.
|
protected |
The category that will be tested for.
Definition at line 532 of file psquestprereqops.h.
|
protected |
The maximum of quest in the given category that need to be completed.
Definition at line 527 of file psquestprereqops.h.
|
protected |
The minimum of quest in the given category that need to be completed.
Definition at line 522 of file psquestprereqops.h.