Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/story_entities/dedicated_server_world.cc @ 8804

Last change on this file since 8804 was 7193, checked in by bensch, 19 years ago

orxonox/trunk: new style for resources (prework/movement)

File size: 1.6 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*/
14
15#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD
16
17#include "dedicated_server_world.h"
18
19#include "state.h"
20#include "class_list.h"
21
22#include "util/loading/load_param.h"
23#include "fast_factory.h"
24#include "util/loading/factory.h"
25
26#include "world_entity.h"
27#include "npcs/npc_test1.h"
28
29
30using namespace std;
31
32//! This creates a Factory to fabricate a DedicatedServerWorld
33CREATE_FACTORY(DedicatedServerWorld, CL_DEDICATED_SERVER_WORLD);
34
35
36
37DedicatedServerWorld::DedicatedServerWorld(const TiXmlElement* root)
38  : GameWorld(root)
39{
40  this->setClassID(CL_DEDICATED_SERVER_WORLD, "DedicatedServerWorld");
41  this->setName("DedicatedServerWorld uninitialized");
42
43  this->loadParams(root);
44}
45
46
47/**
48 *  remove the DedicatedServerWorld from memory
49 *
50 *  delete everything explicitly, that isn't contained in the parenting tree!
51 *  things contained in the tree are deleted automaticaly
52 */
53DedicatedServerWorld::~DedicatedServerWorld ()
54{
55  PRINTF(3)("DedicatedServerWorld::~DedicatedServerWorld() - deleting current world\n");
56}
57
58
59/**
60 * loads the parameters of a DedicatedServerWorld from an XML-element
61 * @param root the XML-element to load from
62 */
63void DedicatedServerWorld::loadParams(const TiXmlElement* root)
64{
65  GameWorld::loadParams(root);
66
67  PRINTF(4)("Loaded DedicatedServerWorld specific stuff\n");
68}
69
Note: See TracBrowser for help on using the repository browser.