[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 | |
---|
[2261] | 29 | /** |
---|
| 30 | @file QuestDescription.cc |
---|
| 31 | @brief |
---|
| 32 | Implementation of the QuestDescription class. |
---|
| 33 | */ |
---|
| 34 | |
---|
[2105] | 35 | #include "OrxonoxStableHeaders.h" |
---|
[2261] | 36 | |
---|
[2105] | 37 | #include "QuestDescription.h" |
---|
| 38 | |
---|
[1996] | 39 | #include "core/CoreIncludes.h" |
---|
[2021] | 40 | |
---|
[1996] | 41 | namespace orxonox { |
---|
| 42 | |
---|
| 43 | CreateFactory(QuestDescription); |
---|
[2092] | 44 | |
---|
[2261] | 45 | /** |
---|
| 46 | @brief |
---|
| 47 | Constructor. Registers and initializes the object. |
---|
| 48 | */ |
---|
[2092] | 49 | QuestDescription::QuestDescription(BaseObject* creator) : BaseObject(creator) |
---|
[1996] | 50 | { |
---|
[2092] | 51 | RegisterObject(QuestDescription); |
---|
[2261] | 52 | |
---|
| 53 | this->title_ = ""; |
---|
| 54 | this->description_ = ""; |
---|
[2021] | 55 | } |
---|
[2092] | 56 | |
---|
[2261] | 57 | /** |
---|
| 58 | @brief |
---|
| 59 | Destructor. |
---|
| 60 | */ |
---|
[1996] | 61 | QuestDescription::~QuestDescription() |
---|
| 62 | { |
---|
[2092] | 63 | |
---|
[1996] | 64 | } |
---|
[2092] | 65 | |
---|
[2261] | 66 | /** |
---|
| 67 | @brief |
---|
| 68 | Method for creating a QuestDescription object through XML. |
---|
| 69 | */ |
---|
[2068] | 70 | void QuestDescription::XMLPort(Element& xmlelement, XMLPort::Mode mode) |
---|
| 71 | { |
---|
| 72 | SUPER(QuestDescription, XMLPort, xmlelement, mode); |
---|
[2092] | 73 | |
---|
[2068] | 74 | XMLPortParam(QuestDescription, "title", setTitle, getTitle, xmlelement, mode); |
---|
| 75 | XMLPortParam(QuestDescription, "description", setDescription, getDescription, xmlelement, mode); |
---|
[2328] | 76 | XMLPortParam(QuestDescription, "failMessage", setFailMessage, getFailMessage, xmlelement, mode); |
---|
| 77 | XMLPortParam(QuestDescription, "failMessage", setCompleteMessage, getCompleteMessage, xmlelement, mode); |
---|
[2092] | 78 | |
---|
[2081] | 79 | COUT(3) << "New QuestDescription with title '" << this->getTitle() << "' created." << std::endl; |
---|
[2068] | 80 | } |
---|
[2092] | 81 | |
---|
[1996] | 82 | |
---|
| 83 | } |
---|