Planeshift
Classes | Defines | Functions

psquest.h File Reference

#include <csutil/csstring.h>
#include <csutil/weakreferenced.h>
#include <idal.h>

Go to the source code of this file.

Classes

class  psQuest
 This class holds the master list of all quests available in the game. More...
struct  psQuest::TriggerResponse

Defines

#define PSQUEST_DISABLED_QUEST   0x00000001
 The quest is disabled and won't be loaded by the server, used for the flags column.
#define QUEST_OPT_SAVEONCOMPLETE   0x01

Functions

bool LoadPrerequisiteXML (csRef< psQuestPrereqOp > &prerequisite, psQuest *self, csString script)
 Utility function to parse prerequisite scripts.

Define Documentation

#define PSQUEST_DISABLED_QUEST   0x00000001

The quest is disabled and won't be loaded by the server, used for the flags column.

Definition at line 43 of file psquest.h.

#define QUEST_OPT_SAVEONCOMPLETE   0x01

Definition at line 40 of file psquest.h.


Function Documentation

bool LoadPrerequisiteXML ( csRef< psQuestPrereqOp > &  prerequisite,
psQuest self,
csString  script 
)

Utility function to parse prerequisite scripts.

Parameters:
prerequisiteThe variable that will hold the parsed prerequisite
selfPointer to the quest if used to load for a quest
scriptThe prerequisite to parse <pre>...</pre>.
Returns:
True if successfully parsed.