- Timestamp:
- Nov 12, 2008, 1:29:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/QuestItem.h
r2159 r2191 51 51 /** 52 52 @brief 53 Functions as a base class for Quest classes such as Quest or QuestHint.53 Functions as a base class for quest classes such as Quest or QuestHint. 54 54 Has a unique identifier and a description. 55 55 @author … … 65 65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a QuestItem object through XML. 66 66 67 inline const std::string & getId(void) const //!< Returns the id of this quest. 67 /** 68 @brief Returns the id of this QuestItem. 69 @return Returns the id of the QuestItem. 70 */ 71 inline const std::string & getId(void) const 68 72 { return this->id_; } 69 inline const QuestDescription* getDescription(void) const //!< Returns the description of the QuestItem. 73 /** 74 @brief Returns the QuestDescription of the QuestItem. 75 @return Returns a pointer to the QuestDescription object of the QuestItem. 76 */ 77 inline const QuestDescription* getDescription(void) const 70 78 { return this->description_; } 71 79 … … 74 82 protected: 75 83 void setId(const std::string & id); //!< Sets the id of the QuestItem. 76 inline void setDescription(QuestDescription* description) //!< Sets the description of the QuestItem. 84 85 /** 86 @brief Sets the description of the QuestItem. 87 @param description The QuestDescription to be set. 88 */ 89 inline void setDescription(QuestDescription* description) 77 90 { this->description_ = description; } 78 91 79 92 private: 80 93 std::string id_; //!< Identifier. Should be of GUID form: http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure 81 QuestDescription* description_; //!< The description of the QuestItem.94 QuestDescription* description_; //!< The QuestDescription of the QuestItem. 82 95 83 96 };
Note: See TracChangeset
for help on using the changeset viewer.