Planeshift
|
Quest assigned prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if the given quest is assigned. | |
virtual csPtr< psQuestPrereqOp > | Copy () |
Copy the prerequisite operator. | |
virtual psQuest * | GetQuest () |
retrieve the quest. | |
virtual csString | GetQuestName () |
retrieve the quest name. | |
virtual csString | GetScriptOp () |
Convert the prerequisite operator to a xml string. | |
psQuestPrereqOpQuestAssigned (psQuest *quest) | |
name of the quest (for weakref if invalid) | |
virtual | ~psQuestPrereqOpQuestAssigned () |
Protected Attributes | |
csWeakRef< psQuest > | quest |
The quest that need to be assigned. | |
csString | questName |
Quest assigned prerequisite operator.
The given quest have to be assigned for this prerequisite to be true.
Definition at line 439 of file psquestprereqops.h.
psQuestPrereqOpQuestAssigned::psQuestPrereqOpQuestAssigned | ( | psQuest * | quest | ) | [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 454 of file psquestprereqops.h.
virtual psQuestPrereqOpQuestAssigned::~psQuestPrereqOpQuestAssigned | ( | ) | [inline, virtual] |
Definition at line 458 of file psquestprereqops.h.
virtual bool psQuestPrereqOpQuestAssigned::Check | ( | psCharacter * | character | ) | [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 csPtr<psQuestPrereqOp> psQuestPrereqOpQuestAssigned::Copy | ( | ) | [virtual] |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
virtual psQuest* psQuestPrereqOpQuestAssigned::GetQuest | ( | ) | [virtual] |
retrieve the quest.
check the weak pointer reference, and if it's invalid try to retrieve the quest again.
virtual csString psQuestPrereqOpQuestAssigned::GetQuestName | ( | ) | [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 csString psQuestPrereqOpQuestAssigned::GetScriptOp | ( | ) | [virtual] |
Convert the prerequisite operator to a xml string.
Convert the operator into the xml string: <assigned quest="quest name"/>
Implements psQuestPrereqOp.
csWeakRef<psQuest> psQuestPrereqOpQuestAssigned::quest [protected] |
The quest that need to be assigned.
Definition at line 445 of file psquestprereqops.h.
csString psQuestPrereqOpQuestAssigned::questName [protected] |
Definition at line 446 of file psquestprereqops.h.