Planeshift
|
Pure virtual base quest prerequisite operator class. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character)=0 |
Check for valid prerequisite. | |
virtual csPtr< psQuestPrereqOp > | Copy ()=0 |
Copy the prerequisite operator. | |
virtual csString | GetScript () |
Convert the prerequisite script to a xml string. | |
virtual csString | GetScriptOp ()=0 |
Convert the prerequisite operator to a xml string. | |
virtual | ~psQuestPrereqOp () |
Destructor for the prerequisite operator. |
Pure virtual base quest prerequisite operator class.
This base class define the needed functions for every prerequisite operator.
Definition at line 55 of file psquestprereqops.h.
virtual psQuestPrereqOp::~psQuestPrereqOp | ( | ) | [inline, virtual] |
Destructor for the prerequisite operator.
Definition at line 62 of file psquestprereqops.h.
virtual bool psQuestPrereqOp::Check | ( | psCharacter * | character | ) | [pure virtual] |
Check for valid prerequisite.
Override this function to generate a test for any prerequisite.
character | The character that are checking for a trigger |
Implemented in psQuestPrereqOpAnd, psQuestPrereqOpOr, psQuestPrereqOpRequire, psQuestPrereqOpNot, psQuestPrereqOpQuestCompleted, psQuestPrereqOpQuestAssigned, psQuestPrereqOpQuestCompletedCategory, psQuestPrereqOpFaction, psQuestPrereqOpItem, psQuestPrereqOpActiveMagic, psQuestPrereqOpTrait, psQuestPrereqOpRace, psQuestPrereqOpGender, psQuestPrereqOpKnownSpell, psQuestPrereqOpGuild, psQuestPrereqOpMarriage, psQuestPrereqOpAdvisorPoints, psQuestPrereqOpTimeOnline, psQuestPrereqOpTimeOfDay, psQuestPrereqOpVariable, psQuestPrereqOpXor, psQuestPrereqOpSkill, psPrereqOpAttackType, and psPrereqOpStance.
virtual csPtr<psQuestPrereqOp> psQuestPrereqOp::Copy | ( | ) | [pure virtual] |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implemented in psQuestPrereqOpAnd, psQuestPrereqOpOr, psQuestPrereqOpRequire, psQuestPrereqOpNot, psQuestPrereqOpQuestCompleted, psQuestPrereqOpQuestAssigned, psQuestPrereqOpQuestCompletedCategory, psQuestPrereqOpFaction, psQuestPrereqOpItem, psQuestPrereqOpActiveMagic, psQuestPrereqOpTrait, psQuestPrereqOpRace, psQuestPrereqOpGender, psQuestPrereqOpKnownSpell, psQuestPrereqOpGuild, psQuestPrereqOpMarriage, psQuestPrereqOpAdvisorPoints, psQuestPrereqOpTimeOnline, psQuestPrereqOpTimeOfDay, psQuestPrereqOpVariable, psQuestPrereqOpXor, psQuestPrereqOpSkill, psPrereqOpAttackType, and psPrereqOpStance.
virtual csString psQuestPrereqOp::GetScript | ( | ) | [virtual] |
Convert the prerequisite script to a xml string.
Wrapps the operator in <pre>...</pre> tags.
virtual csString psQuestPrereqOp::GetScriptOp | ( | ) | [pure virtual] |
Convert the prerequisite operator to a xml string.
Override this function to return the prerequisite xml tag for your new operator.
Implemented in psQuestPrereqOpAnd, psQuestPrereqOpOr, psQuestPrereqOpRequire, psQuestPrereqOpNot, psQuestPrereqOpQuestCompleted, psQuestPrereqOpQuestAssigned, psQuestPrereqOpQuestCompletedCategory, psQuestPrereqOpFaction, psQuestPrereqOpItem, psQuestPrereqOpActiveMagic, psQuestPrereqOpTrait, psQuestPrereqOpRace, psQuestPrereqOpGender, psQuestPrereqOpKnownSpell, psQuestPrereqOpGuild, psQuestPrereqOpMarriage, psQuestPrereqOpAdvisorPoints, psQuestPrereqOpTimeOnline, psQuestPrereqOpTimeOfDay, psQuestPrereqOpVariable, psQuestPrereqOpXor, psQuestPrereqOpSkill, psPrereqOpAttackType, and psPrereqOpStance.