Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4937 in orxonox.OLD for orxonox/trunk/src/util/object_manager.cc


Ignore:
Timestamp:
Jul 22, 2005, 7:37:05 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: FastFactory: some more movement to the BaseClass. Now it is almost where i want it
doxygen tags will follow at 2 o'Clock in the morning …

File:
1 edited

Legend:

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

    r4936 r4937  
    3636  this->storedClassID = classID;
    3737  this->next = NULL;
     38
     39  this->deadList = NULL;
     40  this->unusedContainers = NULL;
    3841
    3942  this->storedDeadObjects = 0;
     
    139142
    140143
     144void FastFactory::prepare(unsigned int count)
     145{
     146/*  if (this->storedDeadObjects + this->storedLivingObjects >= count)
     147  {
     148  PRINTF(3)("not creating new Objects for class %s, because the requested count already exists\n", this->getClassName());
     149}*/
     150  for (int i = this->storedDeadObjects; i < count; i++)
     151  {
     152    this->fabricate();
     153  }
     154}
     155
     156
    141157BaseObject* FastFactory::resurect(ClassID classID)
    142158{
Note: See TracChangeset for help on using the changeset viewer.