Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2006, 10:51:08 PM (18 years ago)
Author:
bensch
Message:

orxonox/branches/new_class_id: new_class ID working, adapdet many classes, and reinvented some of the ClassID stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/story_entities/single_player_world.cc

    r9406 r9709  
    2020
    2121#include "state.h"
    22 #include "class_list.h"
    2322
    2423#include "util/loading/load_param.h"
    25 #include "fast_factory.h"
     24#include "loading/fast_factory.h"
    2625#include "util/loading/factory.h"
    2726
     
    3029
    3130
    32 
    33 
    34 
     31#include "class_id.h"
    3532//! This creates a Factory to fabricate a SinglePlayerWorld
    36 CREATE_FACTORY(SinglePlayerWorld, CL_SINGLE_PLAYER_WORLD);
    37 
    38 
     33NewObjectListDefinitionID(SinglePlayerWorld, CL_SINGLE_PLAYER_WORLD);
     34CREATE_FACTORY(SinglePlayerWorld);
    3935
    4036SinglePlayerWorld::SinglePlayerWorld(const TiXmlElement* root)
    4137  : GameWorld()
    4238{
    43   this->setClassID(CL_SINGLE_PLAYER_WORLD, "SinglePlayerWorld");
     39  this->registerObject(this, SinglePlayerWorld::_objectList);
    4440  this->setName("SinglePlayerWorld uninitialized");
    4541
Note: See TracChangeset for help on using the changeset viewer.