Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4318 in orxonox.OLD for orxonox/trunk/src/util


Ignore:
Timestamp:
May 27, 2005, 12:53:34 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: now changed the orxonox baseobject to object id representation. this is much faster, but needs some care, when defining new classes

Location:
orxonox/trunk/src/util
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/animation/animation_player.cc

    r3868 r4318  
    2828AnimationPlayer::AnimationPlayer ()
    2929{
    30    this->setClassName ("AnimationPlayer");
     30   this->setClassID(CL_ANIMATION_PLAYER);
    3131
    3232   this->animationList = new tList<Animation>();
  • orxonox/trunk/src/util/garbage_collector.cc

    r4311 r4318  
    3838GarbageCollector::GarbageCollector ()
    3939{
    40    this->setClassName ("GarbageCollection");
     40   this->setClassID(CL_GARBAGE_COLLECTOR);
    4141   this->time = 0;
    4242   this->delay = 1.5f; /* clean up all 5.0 seconds */
  • orxonox/trunk/src/util/loading/load_param.h

    r4299 r4318  
    180180  static LoadClassDescription* addClass(const char* className);
    181181  LoadParamDescription* addParam(const char* paramName);
     182 
    182183
    183184  static void printAll(const char* fileName = NULL);
  • orxonox/trunk/src/util/object_manager.cc

    r4313 r4318  
    2929ObjectManager::ObjectManager ()
    3030{
    31   this->setClassName ("ObjectManager");
     31  this->setClassID(CL_OBJECT_MANAGER);
    3232 
    3333  this->managedObjectList = new tList<BaseObject>*[CL_NUMBER];
     34  for(int i = 0; i < CL_NUMBER; ++i)
     35    {
     36      this->managedObjectList[i] = NULL;
     37    }
    3438
    3539  this->garbageCollector = GarbageCollector::getInstance();
     
    9195  for(int i = 0; i < CL_NUMBER; ++i)
    9296    {
    93       if(this->managedObjectList[i] != NULL)
     97      if( this->managedObjectList[i] != NULL)
    9498        PRINT(0)("=   o Class Nr. %i has cached %i object(s)\n", i, this->managedObjectList[i]->getSize());
    9599      else
  • orxonox/trunk/src/util/resource_manager.cc

    r4216 r4318  
    3838ResourceManager::ResourceManager ()
    3939{
    40    this->setClassName ("ResourceManager");
     40   this->setClassID(CL_RESOURCE_MANAGER);
    4141   this->dataDir = NULL;
    4242   this->setDataDir("./");
  • orxonox/trunk/src/util/track/track_manager.cc

    r4262 r4318  
    370370TrackManager::TrackManager(void)
    371371{
    372   this->setClassName("TrackManager");
     372  this->setClassID(CL_TRACK_MANAGER);
     373 
    373374 
    374375  TrackManager::singletonRef = this; // do this because otherwise the TrackNode cannot get The instance of the TrackManager
  • orxonox/trunk/src/util/track/track_node.cc

    r4262 r4318  
    3232TrackNode::TrackNode ()
    3333{
    34   this->setClassName("TrackNode");
     34  this->setClassID(CL_TRACK_NODE);
    3535  this->setName("TrackNode"); /* absolete but still used... */
    3636
Note: See TracChangeset for help on using the changeset viewer.