Changeset 2092 for code/trunk/src/orxonox/objects/quest/QuestItem.h
- Timestamp:
- Nov 1, 2008, 8:32:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/quest/QuestItem.h
r2091 r2092 26 26 * 27 27 */ 28 28 29 29 #ifndef _QuestItem_H__ 30 30 #define _QuestItem_H__ … … 38 38 namespace orxonox { 39 39 40 40 41 41 /** 42 42 @brief … … 48 48 class QuestItem : public BaseObject 49 49 { 50 50 51 51 public: 52 QuestItem( );52 QuestItem(BaseObject* creator); 53 53 virtual ~QuestItem(); 54 54 55 55 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 56 56 57 57 inline const std::string & getId(void) const //!< Returns the id of this quest. 58 58 { return this->id_; } … … 60 60 { return this->description_; } 61 61 //const QuestDescription* getDescription(unsigned int index) const; //!< Returns the description of the QuestItem. 62 62 63 63 static bool isId(const std::string & id); //!< Checks whether a given id is valid. 64 64 65 65 protected: 66 66 void setId(const std::string & id); 67 67 inline void setDescription(QuestDescription* description) 68 68 { this->description_ = description; } 69 69 70 70 private: 71 71 std::string id_; //!< Identifier. Should be of GUID form: http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure 72 72 QuestDescription* description_; //!< The description of the QuestItem. 73 73 74 74 void initialize(void); //!< Initializes the object. 75 75 76 76 }; 77 77
Note: See TracChangeset
for help on using the changeset viewer.