Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Some cleanup…

File size: 2.1 KB
RevLine 
[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
[2159]29/**
30    @file QuestDescription.cc
31    @brief
[2251]32    Implementation of the QuestDescription class.
[2159]33*/
34
[2105]35#include "OrxonoxStableHeaders.h"
[2205]36
[2105]37#include "QuestDescription.h"
38
[1996]39#include "core/CoreIncludes.h"
[2021]40
[1996]41namespace orxonox {
42
43    CreateFactory(QuestDescription);
[2092]44
[2159]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);
[2159]52       
53        this->title_ = "";
54        this->description_ = "";
[2021]55    }
[2092]56
[2159]57    /**
58    @brief
59        Destructor.
60    */
[1996]61    QuestDescription::~QuestDescription()
62    {
[2092]63
[1996]64    }
[2092]65
[2159]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);
[2092]76
[2081]77        COUT(3) << "New QuestDescription with title '" << this->getTitle() << "' created." << std::endl;
[2068]78    }
[2092]79
[1996]80
81}
Note: See TracBrowser for help on using the repository browser.