Changeset 1052 for code/trunk/src/orxonox/objects/WorldEntity.cc
- Timestamp:
- Apr 14, 2008, 3:42:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/WorldEntity.cc
r1039 r1052 176 176 @return The XML-element 177 177 */ 178 void WorldEntity::XMLPort(Element& xmlelement, bool loading)179 { 180 BaseObject::XMLPort(xmlelement, loading);181 182 XMLPortParam(WorldEntity, "position", setPositionLoader2, getPosition, xmlelement, loading);183 XMLPortParamLoadOnly(WorldEntity, "direction", setDirectionLoader, xmlelement, loading);184 XMLPortParamLoadOnly(WorldEntity, "yawpitchroll", setYawPitchRoll, xmlelement, loading);185 XMLPortParam(WorldEntity, "scale", setTotalScale, getScale, xmlelement, loading);186 XMLPortParam(WorldEntity, "rotationAxis", setRotationAxisLoader, getRotationAxis, xmlelement, loading);187 XMLPortParam(WorldEntity, "rotationRate", setRotationRate, getRotationRate, xmlelement, loading);188 189 XMLPortObject(WorldEntity, WorldEntity, "attached", attachWorldEntity, getAttachedWorldEntity, xmlelement, loading);178 void WorldEntity::XMLPort(Element& xmlelement, XMLPort::Mode mode) 179 { 180 BaseObject::XMLPort(xmlelement, mode); 181 182 XMLPortParam(WorldEntity, "position", setPositionLoader2, getPosition, xmlelement, mode); 183 XMLPortParamLoadOnly(WorldEntity, "direction", setDirectionLoader, xmlelement, mode); 184 XMLPortParamLoadOnly(WorldEntity, "yawpitchroll", setYawPitchRoll, xmlelement, mode); 185 XMLPortParam(WorldEntity, "scale", setTotalScale, getScale, xmlelement, mode); 186 XMLPortParam(WorldEntity, "rotationAxis", setRotationAxisLoader, getRotationAxis, xmlelement, mode); 187 XMLPortParam(WorldEntity, "rotationRate", setRotationRate, getRotationRate, xmlelement, mode); 188 189 XMLPortObject(WorldEntity, WorldEntity, "attached", attachWorldEntity, getAttachedWorldEntity, xmlelement, mode, false, true); 190 190 } 191 191 … … 219 219 } 220 220 221 const WorldEntity* WorldEntity::getAttachedWorldEntity(unsigned int index) 221 const WorldEntity* WorldEntity::getAttachedWorldEntity(unsigned int index) const 222 222 { 223 223 if (index < this->attachedWorldEntities_.size())
Note: See TracChangeset
for help on using the changeset viewer.