Planeshift
|
Quest Completed prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if the given quest is completed. 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... | |
psQuestPrereqOpQuestCompleted (psQuest *quest) | |
Construct a quest completed operator. More... | |
psQuestPrereqOpQuestCompleted (csString questName) | |
Construct a quest completed operator. More... | |
virtual | ~psQuestPrereqOpQuestCompleted () |
Destructor for the quest completed 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 | name |
csWeakRef< psQuest > | quest |
The quest that need to be completed. More... | |
Quest Completed prerequisite operator.
The given quest have to be completed for this prerequisite to be true.
Definition at line 359 of file psquestprereqops.h.
|
inline |
Construct a quest completed operator.
quest | The quest that need to be completed |
Definition at line 375 of file psquestprereqops.h.
psQuestPrereqOpQuestCompleted::psQuestPrereqOpQuestCompleted | ( | csString | questName | ) |
Construct a quest completed operator.
questName | The quest that need to be completed |
|
inlinevirtual |
Destructor for the quest completed prerequisite operator.
Definition at line 387 of file psquestprereqops.h.
|
virtual |
Check if the given quest is completed.
prerequisite = Is the quest completed.
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: <completed quest="quest name"/>
Implements psQuestPrereqOp.
|
protected |
Definition at line 366 of file psquestprereqops.h.
|
protected |
The quest that need to be completed.
Definition at line 365 of file psquestprereqops.h.