|
Planeshift
|
Quest assigned prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
| virtual bool | Check (psCharacter *character) |
| Check if the given quest is assigned. More... | |
| virtual csPtr< psQuestPrereqOp > | Copy () |
| Copy the prerequisite operator. More... | |
| virtual psQuest * | GetQuest () |
| retrieve the quest. More... | |
| virtual csString | GetQuestName () |
| retrieve the quest name. More... | |
| virtual csString | GetScriptOp () |
| Convert the prerequisite operator to a xml string. More... | |
| psQuestPrereqOpQuestAssigned (psQuest *quest) | |
| name of the quest (for weakref if invalid) More... | |
| virtual | ~psQuestPrereqOpQuestAssigned () |
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 | |
| csWeakRef< psQuest > | quest |
| The quest that need to be assigned. More... | |
| csString | questName |
Quest assigned prerequisite operator.
The given quest have to be assigned for this prerequisite to be true.
Definition at line 442 of file psquestprereqops.h.
|
inline |
name of the quest (for weakref if invalid)
Construct a quest assigned operator
| quest | The quest that need to be assigned. |
Definition at line 457 of file psquestprereqops.h.
|
inlinevirtual |
Definition at line 461 of file psquestprereqops.h.
|
virtual |
Check if the given quest is assigned.
prerequisite = Is the quest assigned.
| 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 |
retrieve the quest.
check the weak pointer reference, and if it's invalid try to retrieve the quest again.
|
virtual |
retrieve the quest name.
check weak pointer reference and try to optain a new ref, if it's invalid. Otherwise name is used
|
virtual |
Convert the prerequisite operator to a xml string.
Convert the operator into the xml string: <assigned quest="quest name"/>
Implements psQuestPrereqOp.
|
protected |
The quest that need to be assigned.
Definition at line 448 of file psquestprereqops.h.
|
protected |
Definition at line 449 of file psquestprereqops.h.