Changeset 715 for code/branches/FICN/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- Dec 28, 2007, 11:33:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/SpaceShip.cc
r708 r715 26 26 */ 27 27 28 #include <string> 29 28 30 #include <OIS/OIS.h> 29 31 #include <OgreCamera.h> … … 34 36 #include "tinyxml/tinyxml.h" 35 37 #include "misc/String2Number.h" 36 #include "misc/String.h"37 38 #include "../core/CoreIncludes.h" 38 39 #include "../core/Debug.h" … … 196 197 if (xmlElem->Attribute("forward") && xmlElem->Attribute("rotateupdown") && xmlElem->Attribute("rotaterightleft") && xmlElem->Attribute("looprightleft")) 197 198 { 198 String forwardStr = xmlElem->Attribute("forward");199 String rotateupdownStr = xmlElem->Attribute("rotateupdown");200 String rotaterightleftStr = xmlElem->Attribute("rotaterightleft");201 String looprightleftStr = xmlElem->Attribute("looprightleft");199 std::string forwardStr = xmlElem->Attribute("forward"); 200 std::string rotateupdownStr = xmlElem->Attribute("rotateupdown"); 201 std::string rotaterightleftStr = xmlElem->Attribute("rotaterightleft"); 202 std::string looprightleftStr = xmlElem->Attribute("looprightleft"); 202 203 203 204 String2Number<float>(this->maxSpeedForward_, forwardStr); … … 212 213 { 213 214 214 String msStr = xmlElem->Attribute("maxSpeed");215 String msabsStr = xmlElem->Attribute("maxSideAndBackSpeed");216 String mrStr = xmlElem->Attribute("maxRotation");217 String taStr = xmlElem->Attribute("transAcc");218 String raStr = xmlElem->Attribute("rotAcc");219 String tdStr = xmlElem->Attribute("transDamp");220 String rdStr = xmlElem->Attribute("rotDamp");215 std::string msStr = xmlElem->Attribute("maxSpeed"); 216 std::string msabsStr = xmlElem->Attribute("maxSideAndBackSpeed"); 217 std::string mrStr = xmlElem->Attribute("maxRotation"); 218 std::string taStr = xmlElem->Attribute("transAcc"); 219 std::string raStr = xmlElem->Attribute("rotAcc"); 220 std::string tdStr = xmlElem->Attribute("transDamp"); 221 std::string rdStr = xmlElem->Attribute("rotDamp"); 221 222 222 223 String2Number<float>(this->maxSpeed_, msStr);
Note: See TracChangeset
for help on using the changeset viewer.