[1996] | 1 | /* |
---|
| 2 | * ORXONOX - the hottest 3D action shooter ever to exist |
---|
| 3 | * > www.orxonox.net < |
---|
| 4 | * |
---|
| 5 | * |
---|
| 6 | * License notice: |
---|
| 7 | * |
---|
| 8 | * This program is free software; you can redistribute it and/or |
---|
| 9 | * modify it under the terms of the GNU General Public License |
---|
| 10 | * as published by the Free Software Foundation; either version 2 |
---|
| 11 | * of the License, or (at your option) any later version. |
---|
| 12 | * |
---|
| 13 | * This program is distributed in the hope that it will be useful, |
---|
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 16 | * GNU General Public License for more details. |
---|
| 17 | * |
---|
| 18 | * You should have received a copy of the GNU General Public License |
---|
| 19 | * along with this program; if not, write to the Free Software |
---|
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
| 21 | * |
---|
| 22 | * Author: |
---|
| 23 | * Damian 'Mozork' Frick |
---|
| 24 | * Co-authors: |
---|
| 25 | * ... |
---|
| 26 | * |
---|
| 27 | */ |
---|
| 28 | |
---|
| 29 | #ifndef _QuestDescription_H__ |
---|
| 30 | #define _QuestDescription_H__ |
---|
| 31 | |
---|
[2095] | 32 | #include "OrxonoxPrereqs.h" |
---|
| 33 | |
---|
[1996] | 34 | #include <string> |
---|
| 35 | |
---|
| 36 | #include "core/BaseObject.h" |
---|
[2068] | 37 | #include "core/XMLPort.h" |
---|
[1996] | 38 | |
---|
| 39 | namespace orxonox { |
---|
| 40 | |
---|
| 41 | /** |
---|
| 42 | @brief |
---|
| 43 | This class is a description of a QuestItem. |
---|
| 44 | It holds a title and a description. |
---|
| 45 | @author |
---|
| 46 | Damian 'Mozork' Frick |
---|
| 47 | */ |
---|
[2095] | 48 | class _OrxonoxExport QuestDescription : public BaseObject { |
---|
[2092] | 49 | |
---|
[2093] | 50 | public: |
---|
[2092] | 51 | QuestDescription(BaseObject* creator); |
---|
[2093] | 52 | virtual ~QuestDescription(); |
---|
[2092] | 53 | |
---|
[2093] | 54 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
---|
[2092] | 55 | |
---|
[2093] | 56 | inline const std::string & getTitle(void) const //!< Returns the title. |
---|
[1996] | 57 | { return this->title_; } |
---|
[2093] | 58 | inline const std::string & getDescription(void) const //!< Returns the description text. |
---|
[1996] | 59 | { return this->description_; } |
---|
[2092] | 60 | |
---|
[2093] | 61 | private: |
---|
[1996] | 62 | void initialize(void); |
---|
[2092] | 63 | |
---|
[2068] | 64 | inline void setTitle(const std::string & title) //!< Sets the title. |
---|
| 65 | { this->title_ = title; } |
---|
[2093] | 66 | inline void setDescription(const std::string & description) //!< Sets the description text. |
---|
[2068] | 67 | { this->description_ = description; } |
---|
[2092] | 68 | |
---|
[2068] | 69 | std::string title_; //!< The title. |
---|
| 70 | std::string description_; //!< The description. |
---|
[2092] | 71 | |
---|
[1996] | 72 | }; |
---|
| 73 | |
---|
| 74 | } |
---|
| 75 | |
---|
| 76 | #endif /* _QuestDescription_H__ */ |
---|