Changeset 850 for code/branches/core/src/orxonox/objects/WorldEntity.cc
- Timestamp:
- Mar 5, 2008, 1:34:34 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/objects/WorldEntity.cc
r793 r850 37 37 #include "../Orxonox.h" 38 38 #include "WorldEntity.h" 39 #include "core/XMLPort.h" 39 40 40 41 namespace orxonox … … 86 87 void WorldEntity::loadParams(TiXmlElement* xmlElem) 87 88 { 89 88 90 BaseObject::loadParams(xmlElem); 89 91 /* 90 92 if (xmlElem->Attribute("position")) 91 93 { … … 153 155 154 156 create(); 155 157 */ 158 } 159 160 161 /** 162 @brief XML loading and saving. 163 @param xmlelement The XML-element 164 @param loading Loading (true) or saving (false) 165 @return The XML-element 166 */ 167 Element& WorldEntity::XMLPort(Element& xmlelement, bool loading) 168 { 169 std::cout << "2_1: " << this->getPosition() << std::endl; 170 BaseObject::XMLPort(xmlelement, loading); 171 172 XMLPortParam(WorldEntity, "position", setPosition, getPosition, xmlelement, loading); 173 // XMLPortParam(WorldEntity, "direction", setDirection, getDirection, xmlelement, loading); 174 // XMLPortParam(WorldEntity, "yaw", yaw, getYaw, xmlelement, loading); 175 // XMLPortParam(WorldEntity, "pitch", pitch, getPitch, xmlelement, loading); 176 // XMLPortParam(WorldEntity, "roll", roll, getRoll, xmlelement, loading); 177 XMLPortParam(WorldEntity, "scale", setScale, getScale, xmlelement, loading); 178 XMLPortParam(WorldEntity, "rotationAxis", setRotationAxis, getRotationAxis, xmlelement, loading); 179 XMLPortParam(WorldEntity, "rotationRate", setRotationRate, getRotationRate, xmlelement, loading); 180 std::cout << "2_2: " << this->getPosition() << std::endl; 181 182 return xmlelement; 156 183 } 157 184
Note: See TracChangeset
for help on using the changeset viewer.