- Timestamp:
- Nov 6, 2008, 12:02:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/QuestItem.h
r2096 r2146 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__ … … 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 67 inline const std::string & getId(void) const //!< Returns the id of this quest. … … 60 69 inline const QuestDescription* getDescription(void) const //!< Returns the description of the QuestItem. 61 70 { return this->description_; } 62 //const QuestDescription* getDescription(unsigned int index) const; //!< Returns the description of the QuestItem.63 71 64 72 static bool isId(const std::string & id); //!< Checks whether a given id is valid. 65 73 66 74 protected: 67 void setId(const std::string & id); 68 inline void setDescription(QuestDescription* description) 75 void setId(const std::string & id); //!< Sets the id of the QuestItem. 76 inline void setDescription(QuestDescription* description) //!< Sets the description of the QuestItem. 69 77 { this->description_ = description; } 70 78
Note: See TracChangeset
for help on using the changeset viewer.