Changeset 4939 in orxonox.OLD for orxonox/trunk/src/util/object_manager.cc
- Timestamp:
- Jul 23, 2005, 12:15:03 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/object_manager.cc
r4938 r4939 211 211 * kills Object object, meaning, that it will be stored in the deadList of the FastFactory, and waiting for resurrection 212 212 * @param object the Object to kill. 213 * 214 * synony that would be really grate would be abolish, but this is more like exterminate than pause-mode. 213 215 */ 214 216 void FastFactory::kill(BaseObject* object) … … 231 233 232 234 233 void FastFactory::kill(BaseObject* object, ClassID classID) 234 { 235 236 235 void FastFactory::kill(BaseObject* object, bool searchForFastFactory) 236 { 237 if (likely(searchForFastFactory == true)) 238 { 239 FastFactory* tmpFac = FastFactory::first; 240 while (tmpFac != NULL) 241 { 242 if (object->isA(tmpFac->storedClassID)) 243 { 244 tmpFac->kill(object); 245 return; 246 } 247 tmpFac = tmpFac->next; 248 } 249 250 } 237 251 } 238 252
Note: See TracChangeset
for help on using the changeset viewer.