Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/gui/src/world_entities/questGUI/quest.cc @ 10129

Last change on this file since 10129 was 10129, checked in by hejja, 17 years ago

Quest-Klasse implementiert

File size: 1.9 KB
Line 
1
2
3/*
4   orxonox - the future of 3D-vertical-scrollers
5
6   Copyright (C) 2004 orx
7
8   This program is free software; you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation; either version 2, or (at your option)
11   any later version.
12
13   ### File Specific:
14   main-programmer: Andreas Hejj
15
16*/
17
18
19#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
20
21#include "debug.h"
22#include "quest.h"
23
24#include "event_handler.h"
25
26#include "state.h"
27
28#include "util/loading/load_param.h"
29#include "util/loading/factory.h"
30
31#include "graphics_engine.h"
32#include "camera.h"
33#include "sound_engine.h"
34
35#include "sound_source.h"
36
37#include "glgui.h"
38#include "menu/glgui_imagebutton.h"
39#include "glgui_text.h"
40#include <glgui_image.h>
41
42
43#include "shell_command.h"
44
45
46
47
48ObjectListDefinition(Quest);
49
50Quest::Quest(const TiXmlElement* root)
51{
52  this->registerObject(this, Quest::_objectList);
53
54  if( root != NULL)
55    this->loadParams(root);
56
57}
58
59
60/**
61 * deconstructor
62 */
63Quest::~Quest () 
64{
65}
66
67
68
69
70/**
71 * loads the xml tagsthis->questDescription
72 * @param root: root xml tag for this element
73 */
74void Quest::loadParams(const TiXmlElement* root)
75{
76   LoadParam(root, "quest-name", this, Quest, setQuestName)
77       .describe("sets the name of a quest");
78   LoadParam(root, "quest-description", this, Quest, setQuestDescription)
79       .describe("sets the description of a quest");
80   LoadParam(root, "quest-picture", this, Quest, setQuestPicture)
81       .describe("sets the picture of a quest");
82   LoadParam(root, "quest-difficulty", this, Quest, setQuestDifficulty)
83       .describe("sets the difficulty of a quest");
84   LoadParam(root, "reward-description", this, Quest, setRewardDescription)
85       .describe("sets the description of a reward");
86   LoadParam(root, "reward-picture", this, Quest, setRewardPicture)
87       .describe("sets the Picture of a reward");
88   
89}
90
Note: See TracBrowser for help on using the repository browser.