Changeset 2261 for code/trunk/src/orxonox/objects/quest/QuestDescription.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/QuestDescription.h
- Property svn:mergeinfo changed
/code/branches/questsystem2/src/orxonox/objects/quest/QuestDescription.h (added) merged: 2159,2191,2221,2251 /code/trunk/src/orxonox/objects/quest/QuestDescription.h merged: 1925-2089
r2096 r2261 27 27 */ 28 28 29 /** 30 @file QuestDescription.h 31 @brief 32 Definition of the QuestDescription class. 33 */ 34 29 35 #ifndef _QuestDescription_H__ 30 36 #define _QuestDescription_H__ … … 43 49 This class is a description of a QuestItem. 44 50 It holds a title and a description. 51 52 Creating a QuestDescription through XML goes as follows: 53 54 <QuestDescription title="Title" description="Description Text" /> 45 55 @author 46 56 Damian 'Mozork' Frick … … 52 62 virtual ~QuestDescription(); 53 63 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a QuestDescription object through XML. 55 65 56 inline const std::string & getTitle(void) const //!< Returns the title. 66 /** 67 @brief Returns the title. 68 @return Returns a string containing the title of the QuestDescription. 69 */ 70 inline const std::string & getTitle(void) const 57 71 { return this->title_; } 58 inline const std::string & getDescription(void) const //!< Returns the description text. 72 73 /** 74 @brief Returns the description text. 75 @return Returns a string containing the description text of the QuestDescription. 76 */ 77 inline const std::string & getDescription(void) const 59 78 { return this->description_; } 60 79 61 80 private: 62 void initialize(void);63 64 inline void setTitle(const std::string & title) //!< Sets the title.65 { this->title_ = title; }66 inline void setDescription(const std::string & description) //!< Sets the description text.67 { this->description_ = description; }68 69 81 std::string title_; //!< The title. 70 82 std::string description_; //!< The description. 83 84 /** 85 @brief Sets the title. 86 @param title The title to be set. 87 */ 88 inline void setTitle(const std::string & title) 89 { this->title_ = title; } 90 91 /** 92 @brief Sets the description text. 93 @param description The description text to be set. 94 */ 95 inline void setDescription(const std::string & description) 96 { this->description_ = description; } 71 97 72 98 }; - Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.