Changeset 2261 for code/trunk/src/orxonox/objects/quest/QuestItem.h
- Timestamp:
- Nov 25, 2008, 11:56:40 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/questsystem2 (added) merged: 2109,2146,2159,2191,2193-2196,2205-2206,2208-2209,2221,2226,2228,2251,2258
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestItem.h
- Property svn:mergeinfo changed
/code/branches/questsystem2/src/orxonox/objects/quest/QuestItem.h (added) merged: 2146,2159,2191,2251 /code/trunk/src/orxonox/objects/quest/QuestItem.h merged: 1925-2089
r2096 r2261 26 26 * 27 27 */ 28 29 /** 30 @file QuestItem.h 31 @brief 32 Definition of the QuestItem class. 33 34 The QuestItem is the parent class of Quest and QuestHint. 35 */ 36 28 37 29 38 #ifndef _QuestItem_H__ … … 42 51 /** 43 52 @brief 44 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. 45 54 Has a unique identifier and a description. 46 55 @author … … 54 63 virtual ~QuestItem(); 55 64 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a QuestItem object through XML. 57 66 58 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 59 72 { return this->id_; } 60 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 61 78 { return this->description_; } 62 //const QuestDescription* getDescription(unsigned int index) const; //!< Returns the description of the QuestItem.63 79 64 80 static bool isId(const std::string & id); //!< Checks whether a given id is valid. 65 81 66 82 protected: 67 void setId(const std::string & id); 83 void setId(const std::string & id); //!< Sets the id of the QuestItem. 84 85 /** 86 @brief Sets the description of the QuestItem. 87 @param description The QuestDescription to be set. 88 */ 68 89 inline void setDescription(QuestDescription* description) 69 90 { this->description_ = description; } … … 71 92 private: 72 93 std::string id_; //!< Identifier. Should be of GUID form: http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure 73 QuestDescription* description_; //!< The description of the QuestItem. 74 75 void initialize(void); //!< Initializes the object. 94 QuestDescription* description_; //!< The QuestDescription of the QuestItem. 76 95 77 96 }; - Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.