Changeset 708 for code/branches/FICN/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- Dec 28, 2007, 10:30:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/SpaceShip.cc
r706 r708 26 26 */ 27 27 28 #include <OIS/OIS.h> 29 #include <OgreCamera.h> 30 #include <OgreRenderWindow.h> 31 #include <OgreParticleSystem.h> 32 #include <OgreSceneNode.h> 33 34 #include "tinyxml/tinyxml.h" 35 #include "misc/String2Number.h" 36 #include "misc/String.h" 37 #include "../core/CoreIncludes.h" 38 #include "../core/Debug.h" 39 #include "../Orxonox.h" 40 #include "../particle/ParticleInterface.h" 41 #include "Projectile.h" 42 28 43 #include "SpaceShip.h" 29 #include "Projectile.h"30 31 #include "../../tinyxml/tinyxml.h"32 #include "../../misc/String2Number.h"33 #include "../core/CoreIncludes.h"34 #include "../Orxonox.h"35 36 #include "OgreCamera.h"37 #include <OgreRenderWindow.h>38 44 39 45 namespace orxonox … … 134 140 135 141 // START CREATING THRUSTER 136 this->tt_ = new particle::ParticleInterface(Orxonox::getSingleton()->getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow");142 this->tt_ = new ParticleInterface(Orxonox::getSingleton()->getSceneManager(),"twinthruster" + this->getName(),"Orxonox/engineglow"); 137 143 this->tt_->getParticleSystem()->setParameter("local_space","true"); 138 144 this->tt_->newEmitter(); … … 190 196 if (xmlElem->Attribute("forward") && xmlElem->Attribute("rotateupdown") && xmlElem->Attribute("rotaterightleft") && xmlElem->Attribute("looprightleft")) 191 197 { 192 std::string forwardStr = xmlElem->Attribute("forward");193 std::string rotateupdownStr = xmlElem->Attribute("rotateupdown");194 std::string rotaterightleftStr = xmlElem->Attribute("rotaterightleft");195 std::string looprightleftStr = xmlElem->Attribute("looprightleft");198 String forwardStr = xmlElem->Attribute("forward"); 199 String rotateupdownStr = xmlElem->Attribute("rotateupdown"); 200 String rotaterightleftStr = xmlElem->Attribute("rotaterightleft"); 201 String looprightleftStr = xmlElem->Attribute("looprightleft"); 196 202 197 203 String2Number<float>(this->maxSpeedForward_, forwardStr); … … 206 212 { 207 213 208 std::string msStr = xmlElem->Attribute("maxSpeed");209 std::string msabsStr = xmlElem->Attribute("maxSideAndBackSpeed");210 std::string mrStr = xmlElem->Attribute("maxRotation");211 std::string taStr = xmlElem->Attribute("transAcc");212 std::string raStr = xmlElem->Attribute("rotAcc");213 std::string tdStr = xmlElem->Attribute("transDamp");214 std::string rdStr = xmlElem->Attribute("rotDamp");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 221 216 222 String2Number<float>(this->maxSpeed_, msStr);
Note: See TracChangeset
for help on using the changeset viewer.