- Timestamp:
- Nov 8, 2008, 7:58:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/Quest.h
r2146 r2159 87 87 inline const std::list<Quest*> & getSubQuestList(void) const //!< Returns the list of sub quests. 88 88 { return this->subQuests_; } 89 inline const std::list<QuestHint*> & getHintsList(void) const //!< Returns the list of all hints of this quest. 90 { return this->hints_; } 89 91 90 92 bool isInactive(const ControllableEntity* player) const; //!< Returns true if the quest status for the specific player is 'inactive'. … … 98 100 99 101 protected: 100 void initialize(void); //!< Initializes the object.101 102 102 virtual bool isStartable(const ControllableEntity* player) const = 0; //!< Checks whether the quest can be started. 103 103 virtual bool isFailable(const ControllableEntity* player) const = 0; //!< Checks whether the quest can be failed. 104 104 virtual bool isCompletable(const ControllableEntity* player) const = 0; //!< Checks whether the quest can be completed. 105 105 106 bool setParentQuest(Quest* quest); //!< Sets the parent quest of the quest.107 bool addSubQuest(Quest* quest); //!< Adds a sub quest to the quest.108 bool addHint(QuestHint* hint); //!< Add a hint to the list of hints.109 bool addFailEffect(QuestEffect* effect); //!< Adds an effect to the list of failEffects.110 bool addCompleteEffect(QuestEffect* effect); //!< Adds an effect to the list of completeEffects.111 112 106 const Quest* getParentQuest(void); //!< Returns the parent quest of the quest. 113 const Quest* getSubQuests(unsigned int index) const; //!<Returns the sub quest of the given index. 114 const QuestHint* getHints(unsigned int index) const; //!< Returns the hint of the given index. 115 const QuestEffect* getFailEffects(unsigned int index) const; //!< Returns the failEffect of the given index. 116 const QuestEffect* getCompleteEffects(unsigned int index) const; //!Returns the completeEffect of the given index. 107 const Quest* getSubQuest(unsigned int index) const; //!<Returns the sub quest of the given index. 108 const QuestHint* getHint(unsigned int index) const; //!< Returns the hint of the given index. 109 const QuestEffect* getFailEffect(unsigned int index) const; //!< Returns the failEffect of the given index. 110 const QuestEffect* getCompleteEffect(unsigned int index) const; //!< Returns the completeEffect of the given index. 111 inline std::list<QuestEffect*> & getFailEffectList(void) //!< Returns the list of failEffects. 112 { return this->failEffects_; } 113 inline std::list<QuestEffect*> & getCompleteEffectList(void) //!< Returns the list of completeEffects. 114 { return this->completeEffects_; } 117 115 118 116 virtual questStatus::Enum getStatus(const ControllableEntity* player) const = 0; //!< Returns the status of the quest for a specific player. 119 117 virtual bool setStatus(ControllableEntity* player, const questStatus::Enum & status) = 0; //!< Changes the status for a specific player. 120 118 119 private: 121 120 Quest* parentQuest_; //!< Pointer to the parent quest. 122 121 std::list<Quest*> subQuests_; //!< List of all the sub quests. … … 126 125 std::list<QuestEffect*> failEffects_; //!< A list of all effects to be invoked, when the quest has been failed. 127 126 std::list<QuestEffect*> completeEffects_; //!< A list of effects to be invoked, when the quest has been completed. 127 128 bool setParentQuest(Quest* quest); //!< Sets the parent quest of the quest. 129 bool addSubQuest(Quest* quest); //!< Adds a sub quest to the quest. 130 bool addHint(QuestHint* hint); //!< Add a hint to the list of hints. 131 bool addFailEffect(QuestEffect* effect); //!< Adds an effect to the list of failEffects. 132 bool addCompleteEffect(QuestEffect* effect); //!< Adds an effect to the list of completeEffects. 128 133 129 134 };
Note: See TracChangeset
for help on using the changeset viewer.