Changeset 2076 for code/branches/questsystem/src/orxonox/objects/Quest.h
- Timestamp:
- Oct 31, 2008, 7:35:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem/src/orxonox/objects/Quest.h
r2068 r2076 33 33 #include <string> 34 34 35 #include "core/XMLPort.h" 35 36 #include "QuestDescription.h" 36 37 #include "QuestItem.h" … … 67 68 public: 68 69 Quest(); 69 Quest(std::string id);70 70 virtual ~Quest(); 71 72 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 71 73 72 74 inline Quest* getParentQuest(void) const //!< Returns the parent quest of the quest. 73 75 { return this->parentQuest_; } 74 inline const std::list<Quest*> & getSubQuest (void) const //!< Returns the list of sub quests.76 inline const std::list<Quest*> & getSubQuestList(void) const //!< Returns the list of sub quests. 75 77 { return this->subQuests_; } 76 78 … … 83 85 bool fail(Player* player); //!< Fails the quest. 84 86 bool complete(Player* player); //!< Completes the quest. 85 86 bool addHint(QuestHint* hint); //!< Add a hint to the list of hints.87 87 88 88 protected: … … 95 95 bool setParentQuest(Quest* quest); //!< Sets the parent quest of the quest. 96 96 bool addSubQuest(Quest* quest); //!< Adds a sub quest to the quest. 97 bool addHint(QuestHint* hint); //!< Add a hint to the list of hints. 98 bool addFailEffect(QuestEffect* effect); 99 bool addCompleteEffect(QuestEffect* effect); 100 101 const Quest* getParentQuest(void); 102 const Quest* getSubQuests(unsigned int index) const; 103 const QuestHint* getHints(unsigned int index) const; 104 const QuestEffect* getFailEffects(unsigned int index) const; 105 const QuestEffect* getCompleteEffects(unsigned int index) const; 97 106 98 107 virtual questStatus::Enum getStatus(const Player* player) const = 0; //!< Returns the status of the quest for a specific player.
Note: See TracChangeset
for help on using the changeset viewer.