91 {
return this->parentQuest_; }
98 {
return this->subQuests_; }
105 {
return this->hints_; }
107 bool isInactive(
const PlayerInfo* player)
const;
119 virtual bool isStartable(
const PlayerInfo* player)
const = 0;
120 virtual bool isFailable(
const PlayerInfo* player)
const = 0;
121 virtual bool isCompletable(
const PlayerInfo* player)
const = 0;
123 const Quest* getSubQuest(
unsigned int index)
const;
124 const QuestHint* getHint(
unsigned int index)
const;
125 const QuestEffect* getFailEffect(
unsigned int index)
const;
126 const QuestEffect* getCompleteEffect(
unsigned int index)
const;
133 {
return this->failEffects_; }
140 {
return this->completeEffects_; }
156 bool setParentQuest(
Quest* quest);
157 bool addSubQuest(
Quest* quest);
The Quest has been failed.
Quest * getParentQuest(void) const
Returns the parent-quest of the Quest.
Definition: Quest.h:90
std::list< QuestEffect * > & getCompleteEffectList(void)
Returns the list of complete QuestEffects.
Definition: Quest.h:139
The Quest has been completed.
const std::list< QuestHint * > & getHintsList(void) const
Returns the list of all QuestHints of this Quest.
Definition: Quest.h:104
Definition of the QuestItem class.
std::list< QuestEffect * > & getFailEffectList(void)
Returns the list of fail QuestEffects.
Definition: Quest.h:132
Represents a Quest in the game.
Definition: Quest.h:77
std::list< QuestEffect * > completeEffects_
A list of QuestEffects to be invoked, when the Quest has been completed.
Definition: Quest.h:152
std::list< Quest * > subQuests_
List of all the sub-quests.
Definition: Quest.h:147
xmlelement
Definition: Super.h:519
Handles QuestEffects for Quests.
Definition: QuestEffect.h:56
std::list< QuestEffect * > failEffects_
A list of all QuestEffects to be invoked, when the Quest has been failed.
Definition: Quest.h:151
std::list< QuestListener * > listeners_
A list of QuestListeners, that listen to what exactly happens with this Quest.
Definition: Quest.h:154
QuestStatus
Different states of a Quest.
Definition: Quest.h:53
Provides a way to react to the starting, completing and failing of Quests.
Definition: QuestListener.h:82
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Shared library macros, enums, constants and forward declarations for the questsystem module ...
void status(const std::string &text)
Prints output with status level.
Definition: ConsoleCommandCompilation.cc:153
Quest * parentQuest_
Pointer to the parent-quest.
Definition: Quest.h:146
Definition: PlayerInfo.h:39
std::list< QuestHint * > hints_
A list of all the QuestHints tied to this Quest.
Definition: Quest.h:149
Represents a hint in the game that gives aid towards completing a Quest.
Definition: QuestHint.h:76
const std::list< Quest * > & getSubQuestList(void) const
Returns the list of sub-quests.
Definition: Quest.h:97
Functions as a base class for quest classes such as Quest or QuestHint.
Definition: QuestItem.h:58
#define _QuestsystemExport
Definition: QuestsystemPrereqs.h:60