Changeset 5652 in orxonox.OLD for trunk/src/lib/physics
- Timestamp:
- Nov 20, 2005, 6:32:39 PM (19 years ago)
- Location:
- trunk/src/lib/physics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/physics/fields/field.cc
r5357 r5652 60 60 static_cast<PNode*>(this)->loadParams(root); 61 61 62 LoadParam<Field>(root, "magnitude", this, &Field::setMagnitude) 63 .describe("sets the magnitude of this Field"); 62 LoadParamNEW(root, "magnitude", this, Field, setMagnitude) 63 .describe("sets the magnitude of this Field") 64 ->defaultValues(1, 1); 64 65 65 LoadParam <Field>(root, "attenuation", this, &Field::setAttenuation)66 LoadParamNEW(root, "attenuation", this, Field, setAttenuation) 66 67 .describe("sets the attenuation of this Field."); 67 68 -
trunk/src/lib/physics/physics_connection.cc
r5357 r5652 52 52 static_cast<BaseObject*>(this)->loadParams(root); 53 53 54 LoadParam <PhysicsConnection>(root, "subject", this, &PhysicsConnection::setSubject)54 LoadParamNEW(root, "subject", this, PhysicsConnection, setSubject) 55 55 .describe("set the subject by a name"); 56 56 57 LoadParam <PhysicsConnection>(root, "field", this, &PhysicsConnection::setField)57 LoadParamNEW(root, "field", this, PhysicsConnection, setField) 58 58 .describe("set the field by name"); 59 59 -
trunk/src/lib/physics/physics_engine.cc
r5217 r5652 93 93 void PhysicsEngine::loadParams(const TiXmlElement* root) 94 94 { 95 LoadParam <PhysicsEngine>(root, "Fields", this, &PhysicsEngine::loadFields)95 LoadParamXML(root, "Fields", this, PhysicsEngine, loadFields) 96 96 .describe("loads a list of fields"); 97 97 98 LoadParam <PhysicsEngine>(root, "Connections", this, &PhysicsEngine::loadConnections)98 LoadParamXML(root, "Connections", this, PhysicsEngine, loadConnections) 99 99 .describe("loads a list of fields"); 100 100 }
Note: See TracChangeset
for help on using the changeset viewer.