Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2006, 10:51:08 PM (19 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/world_entities/environment.cc

    r9406 r9709  
    2222#include "util/loading/resource_manager.h"
    2323
    24 #include "vector.h"
    2524#include "objModel.h"
    2625#include "obb_tree.h"
    2726#include "util/loading/factory.h"
    2827
    29 
    30 CREATE_FACTORY(Environment, CL_ENVIRONMENT);
     28#include "class_id.h"
     29NewObjectListDefinitionID(Environment, CL_ENVIRONMENT);
     30CREATE_FACTORY(Environment);
    3131
    3232/**
     
    6363void Environment::init()
    6464{
    65   this->setClassID(CL_ENVIRONMENT, "Environment");
     65  this->registerObject(this, Environment::_objectList);
    6666  this->toList(OM_ENVIRON);
    6767}
Note: See TracChangeset for help on using the changeset viewer.