Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/mission_goal.cc @ 7463

Last change on this file since 7463 was 7463, checked in by patrick, 18 years ago

mission goals now get loaded correctly with all attributes

File size: 1.2 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Patrick Boenzli
13   co-programmer: ...
14*/
15
16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GAME_RULES
17
18#include "mission_goal.h"
19
20#include "util/loading/load_param.h"
21
22using namespace std;
23
24
25/**
26 * standard constructor
27 * @todo this constructor is not jet implemented - do it
28*/
29MissionGoal::MissionGoal (const TiXmlElement* root)
30{
31   this->setClassID(CL_MISSION_GOAL, "MissionGoal");
32
33   if( root != NULL)
34     this->loadParams(root);
35}
36
37
38/**
39 * standard deconstructor
40*/
41MissionGoal::~MissionGoal ()
42{
43
44}
45
46/**
47 * loading parameter function: more help on the wiki pages
48 */
49void MissionGoal::loadParams(const TiXmlElement* root)
50{
51  BaseObject::loadParams(root);
52
53  LoadParam(root, "title", this, MissionGoal, setMissionName)
54      .describe("sets the title of the mission");
55  LoadParam(root, "description", this, MissionGoal, setMissionDescription)
56      .describe("sets the mission description");
57}
58
Note: See TracBrowser for help on using the repository browser.