Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/questsystem2/src/orxonox/objects/quest/QuestDescription.cc @ 2731

Last change on this file since 2731 was 2251, checked in by dafrick, 16 years ago

Some cleanup…

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