Changeset 9406 in orxonox.OLD for trunk/src/lib/physics
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- Location:
- trunk/src/lib/physics
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/physics/fields/field.cc
r7199 r9406 22 22 #include "util/loading/factory.h" 23 23 #include "util/loading/load_param.h" 24 using namespace std; 24 25 25 26 26 /** -
trunk/src/lib/physics/fields/gravity.cc
r7193 r9406 21 21 #include "util/loading/factory.h" 22 22 23 using namespace std; 23 24 24 25 25 CREATE_FACTORY(Gravity, CL_FIELD_GRAVITY); -
trunk/src/lib/physics/fields/point_gravity.cc
r5357 r9406 18 18 #include "point_gravity.h" 19 19 20 using namespace std; 20 21 21 22 22 -
trunk/src/lib/physics/fields/twirl.cc
r5357 r9406 18 18 #include "twirl.h" 19 19 20 using namespace std; 20 21 21 22 22 -
trunk/src/lib/physics/physics_connection.cc
r7221 r9406 27 27 #include "util/loading/load_param.h" 28 28 29 using namespace std; 29 30 30 31 31 CREATE_FACTORY(PhysicsConnection, CL_PHYSICS_CONNECTION); … … 81 81 } 82 82 else 83 PRINTF(5)("subject::%s\n", this->subject->get Name());83 PRINTF(5)("subject::%s\n", this->subject->getCName()); 84 84 } 85 85 … … 95 95 } 96 96 else 97 PRINTF(5)("field::%s\n", this->field->get Name());97 PRINTF(5)("field::%s\n", this->field->getCName()); 98 98 99 99 } -
trunk/src/lib/physics/physics_engine.cc
r7221 r9406 23 23 #include "util/loading/load_param.h" 24 24 25 using namespace std; 25 26 26 27 27 … … 162 162 Field* PhysicsEngine::getFieldByName(const std::string& fieldName) const 163 163 { 164 list<Field*>::const_iterator field;164 std::list<Field*>::const_iterator field; 165 165 for (field = this->fields.begin(); field != this->fields.end(); field++) 166 166 if (fieldName == (*field)->getName()) … … 199 199 PhysicsConnection* PhysicsEngine::getPhysicsConnectionByName(const std::string& physicsConnectionName) const 200 200 { 201 list<PhysicsConnection*>::const_iterator pc;201 std::list<PhysicsConnection*>::const_iterator pc; 202 202 for (pc = this->connections.begin(); pc != this->connections.end(); pc++) 203 203 if (physicsConnectionName == (*pc)->getName()) … … 218 218 /* go through all the PhysicsInterface(s) and tick them, 219 219 meaning let the fields work */ 220 list<PhysicsConnection*>::iterator pc;220 std::list<PhysicsConnection*>::iterator pc; 221 221 for (pc = this->connections.begin(); pc != this->connections.end(); pc++) 222 222 (*pc)->apply(); … … 225 225 if (this->interfaces != NULL || (this->interfaces = ClassList::getList(CL_PHYSICS_INTERFACE)) != NULL) 226 226 { 227 list<BaseObject*>::const_iterator tickPhys;227 std::list<BaseObject*>::const_iterator tickPhys; 228 228 for (tickPhys = this->interfaces->begin(); tickPhys != this->interfaces->end(); tickPhys++) 229 229 dynamic_cast<PhysicsInterface*>(*tickPhys)->tickPhys(dt); -
trunk/src/lib/physics/physics_interface.cc
r8350 r9406 29 29 #include "stdincl.h" 30 30 31 using namespace std; 31 32 32 33 33 … … 68 68 { 69 69 // todo: find out if children are PhysicsInterface in an efficient way 70 if (strcmp( pn->getClass Name(), "PhysicsInterface")) {70 if (strcmp( pn->getClassCName(), "PhysicsInterface")) { 71 71 massSum += ((PhysicsInterface*)pn)->getTotalMass(); 72 72 } … … 77 77 if (massSum != this->massChildren ) { 78 78 this->massChildren = massSum; 79 if (strcmp( massCalcPNode->parent->getClass Name(), "PhysicsInterface"))79 if (strcmp( massCalcPNode->parent->getClassCName(), "PhysicsInterface")) 80 80 ((PhysicsInterface*)massCalcPNode->parent)->recalcMass(); 81 81 } else {
Note: See TracChangeset
for help on using the changeset viewer.