Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4938 in orxonox.OLD for orxonox/trunk/src/util/garbage_collector.cc


Ignore:
Timestamp:
Jul 22, 2005, 11:57:38 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: doxygen tags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/garbage_collector.cc

    r4836 r4938  
    1818#include "garbage_collector.h"
    1919
    20 #include "world.h"
     20#include "state.h"
    2121#include "world_entity.h"
    2222#include "null_parent.h"
     
    3939
    4040   this->time = 0;
    41    this->delay = 1.5f; /* clean up all 5.0 seconds */
     41   this->delay = 5.0f; /* clean up all 5.0 seconds */
    4242}
    4343
     
    104104  PRINTF(3)("=============================\n");
    105105  int counter = 0;
    106   WorldInterface* wi = WorldInterface::getInstance();
    107   tList<WorldEntity>* list = wi->getEntityList();
     106
     107  tList<WorldEntity>* list = State::getWorldEntityList();
    108108
    109109  tIterator<WorldEntity>* iterator = list->getIterator();
     
    121121          entity->remove();
    122122          /* then finaly delete reference */
    123           delete entity;
     123          //delete entity;
     124          //FastFactory::kill();
    124125          //ObjectManager::getInstance()->addToDeadList(entity->getClassID() & CL_MASK_LOWLEVEL_CLASS, entity);
    125126        }
Note: See TracChangeset for help on using the changeset viewer.