Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/story_entities/single_player_world.cc @ 9716

Last change on this file since 9716 was 9716, checked in by bensch, 18 years ago

more renamings

File size: 1.8 KB
RevLine 
[4555]1/*
[1853]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.
[1855]10
11   ### File Specific:
12   main-programmer: Patrick Boenzli
[1853]13*/
14
[3590]15#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD
16
[6409]17
[6358]18#include "single_player_world.h"
[6404]19#include "single_player_world_data.h"
[3608]20
[4347]21#include "state.h"
22
[7193]23#include "util/loading/load_param.h"
[9709]24#include "loading/fast_factory.h"
[7193]25#include "util/loading/factory.h"
[4245]26
[6360]27#include "world_entity.h"
28#include "npcs/npc_test1.h"
[4504]29
[4747]30
[9716]31#include "class_id_DEPRECATED.h"
[6358]32//! This creates a Factory to fabricate a SinglePlayerWorld
[9715]33ObjectListDefinitionID(SinglePlayerWorld, CL_SINGLE_PLAYER_WORLD);
[9709]34CREATE_FACTORY(SinglePlayerWorld);
[5915]35
[6358]36SinglePlayerWorld::SinglePlayerWorld(const TiXmlElement* root)
[6989]37  : GameWorld()
[4010]38{
[9709]39  this->registerObject(this, SinglePlayerWorld::_objectList);
[6374]40  this->setName("SinglePlayerWorld uninitialized");
41
[6407]42  this->dataTank = new SinglePlayerWorldData();
43
[4261]44  this->loadParams(root);
[4010]45}
46
[6358]47
[4555]48/**
[6358]49 *  remove the SinglePlayerWorld from memory
[6150]50 *
51 *  delete everything explicitly, that isn't contained in the parenting tree!
52 *  things contained in the tree are deleted automaticaly
[4838]53 */
[6358]54SinglePlayerWorld::~SinglePlayerWorld ()
[1872]55{
[6358]56  PRINTF(3)("SinglePlayerWorld::~SinglePlayerWorld() - deleting current world\n");
[7287]57
58  if( this->dataTank)
59    delete this->dataTank;
[6358]60}
[3677]61
[5115]62
[3526]63/**
[6358]64 * loads the parameters of a SinglePlayerWorld from an XML-element
[4978]65 * @param root the XML-element to load from
66 */
[6358]67void SinglePlayerWorld::loadParams(const TiXmlElement* root)
[4261]68{
[6512]69  GameWorld::loadParams(root);
[4261]70
[6376]71  PRINTF(4)("Loaded SinglePlayerWorld specific stuff\n");
[6358]72}
[4834]73
Note: See TracBrowser for help on using the repository browser.