Changeset 4733 in orxonox.OLD for orxonox/trunk/src/lib/physics
- Timestamp:
- Jun 29, 2005, 11:58:22 AM (19 years ago)
- Location:
- orxonox/trunk/src/lib/physics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/physics/physics_engine.cc
r4731 r4733 23 23 #include "tinyxml.h" 24 24 #include "factory.h" 25 #include "load_param.h" 25 26 26 27 using namespace std; … … 58 59 void PhysicsEngine::loadParams(const TiXmlElement* root) 59 60 { 60 const TiXmlElement* element = NULL; 61 61 LoadParam<PhysicsEngine>(root, "Fields", this, &PhysicsEngine::loadFields) 62 .describe("loads a list of fields"); 63 64 LoadParam<PhysicsEngine>(root, "Connections", this, &PhysicsEngine::loadConnections) 65 .describe("loads a list of fields"); 66 } 67 68 /** 69 * \param root the XML-element to Load the PhysicsField from 70 */ 71 void PhysicsEngine::loadFields(const TiXmlElement* root) 72 { 62 73 PRINTF(4)("Loading Physical Fields\n"); 63 element = root->FirstChildElement("Fields"); 64 element = element->FirstChildElement();74 75 const TiXmlElement* element = root->FirstChildElement(); 65 76 while (element != NULL) 66 77 { … … 69 80 element = element->NextSiblingElement(); 70 81 } 71 element = NULL; 72 82 } 83 84 /** 85 * \param root the XML-element to load the PhysicsConnection from 86 */ 87 void PhysicsEngine::loadConnections(const TiXmlElement* root) 88 { 73 89 PRINTF(4)("Loading Physical Connections\n"); 74 element = root->FirstChildElement("Connections"); 75 element = element->FirstChildElement();90 91 const TiXmlElement* element = root->FirstChildElement(); 76 92 while (element != NULL) 77 93 { -
orxonox/trunk/src/lib/physics/physics_engine.h
r4728 r4733 27 27 28 28 void loadParams(const TiXmlElement* root); 29 void loadFields(const TiXmlElement* root); 30 void loadConnections(const TiXmlElement* root); 29 31 30 32 void addPhysicsInterface(PhysicsInterface* physicsInterface);
Note: See TracChangeset
for help on using the changeset viewer.