Changeset 5110 in orxonox.OLD for trunk/src/lib/physics
- Timestamp:
- Aug 23, 2005, 11:07:40 PM (19 years ago)
- Location:
- trunk/src/lib/physics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/physics/physics_engine.cc
r4836 r5110 52 52 { 53 53 // delete all PhysicsConnections that are still in existence 54 tIterator<PhysicsConnection>* itPC = this->connections->getIterator();55 PhysicsConnection* enumPC = itPC->nextElement();56 while (enumPC)57 {58 delete enumPC;59 enumPC = itPC->nextElement();60 }61 delete itPC;62 delete this->connections;63 64 // delete all PhysicsInterfaces, still in existence (this could be dangerous)65 tIterator<PhysicsInterface>* itPI = this->interfaces->getIterator();66 PhysicsInterface* enumPI = itPI->nextElement();67 while (enumPI)68 {69 delete enumPI;70 71 enumPI = itPI->nextElement();72 }73 delete itPI;74 delete this->interfaces;75 76 // delete all PhysicsFields, still in existence (this could be dangerous)77 tIterator<Field>* itF = this->fields->getIterator();78 Field* enumF = itF->nextElement();79 while (enumF)80 {81 delete enumF;82 83 enumF = itF->nextElement();84 }85 delete itF;86 delete this->fields;54 // tIterator<PhysicsConnection>* itPC = this->connections->getIterator(); 55 // PhysicsConnection* enumPC = itPC->firstElement(); 56 // while (enumPC) 57 // { 58 // delete enumPC; 59 // enumPC = itPC->nextElement(); 60 // } 61 // delete itPC; 62 // delete this->connections; 63 // 64 // // delete all PhysicsInterfaces, still in existence (this could be dangerous) 65 // tIterator<PhysicsInterface>* itPI = this->interfaces->getIterator(); 66 // PhysicsInterface* enumPI = itPI->firstElement(); 67 // while (enumPI) 68 // { 69 // delete enumPI; 70 // 71 // enumPI = itPI->nextElement(); 72 // } 73 // delete itPI; 74 // delete this->interfaces; 75 // 76 // // delete all PhysicsFields, still in existence (this could be dangerous) 77 // tIterator<Field>* itF = this->fields->getIterator(); 78 // Field* enumF = itF->firstElement(); 79 // while (enumF) 80 // { 81 // delete enumF; 82 // 83 // enumF = itF->nextElement(); 84 // } 85 // delete itF; 86 // delete this->fields; 87 87 88 88 … … 163 163 { 164 164 tIterator<PhysicsInterface>* tmpIt = interfaces->getIterator(); 165 PhysicsInterface* tmpInt = tmpIt-> nextElement();165 PhysicsInterface* tmpInt = tmpIt->firstElement(); 166 166 while(tmpInt) 167 167 { … … 206 206 { 207 207 tIterator<Field>* tmpIt = fields->getIterator(); 208 Field* tmpField = tmpIt-> nextElement();208 Field* tmpField = tmpIt->firstElement(); 209 209 while(tmpField) 210 210 { … … 251 251 { 252 252 tIterator<PhysicsConnection>* tmpIt = connections->getIterator(); 253 PhysicsConnection* tmpConn = tmpIt-> nextElement();253 PhysicsConnection* tmpConn = tmpIt->firstElement(); 254 254 while(tmpConn) 255 255 { … … 278 278 meaning let the fields work */ 279 279 tIterator<PhysicsConnection>* itPC = this->connections->getIterator(); 280 PhysicsConnection* enumPC = itPC-> nextElement();280 PhysicsConnection* enumPC = itPC->firstElement(); 281 281 while (enumPC) 282 282 { … … 289 289 /* actually tick all the PhysicsInterfaces. Move the objects around */ 290 290 tIterator<PhysicsInterface>* itPI = this->interfaces->getIterator(); 291 PhysicsInterface* enumPI = itPI-> nextElement();291 PhysicsInterface* enumPI = itPI->firstElement(); 292 292 while (enumPI) 293 293 { -
trunk/src/lib/physics/physics_interface.cc
r4836 r5110 68 68 69 69 tIterator<PNode>* iterator = massCalcPNode->children->getIterator(); 70 PNode* pn = iterator-> nextElement();70 PNode* pn = iterator->firstElement(); 71 71 while( pn != NULL) 72 72 {
Note: See TracChangeset
for help on using the changeset viewer.