Changeset 663
- Timestamp:
- Dec 20, 2007, 8:01:43 PM (17 years ago)
- Location:
- code/branches/FICN/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/loader/LevelLoader.cc
r661 r663 177 177 { 178 178 tNode = 0; 179 //FIXME something is wrong, probably missing == 179 180 while (tNode = worldElem->IterateChildren(tNode)) 180 181 { -
code/branches/FICN/src/orxonox/Orxonox.cc
r637 r663 423 423 std::ostringstream windowHndStr; 424 424 OIS::ParamList pl; 425 426 // fixes auto repeat problem 427 #if defined OIS_LINUX_PLATFORM 428 pl.insert(std::make_pair(std::string("XAutoRepeatOn"), std::string("true"))); 429 #endif 430 425 431 RenderWindow *win = ogre_->getRoot()->getAutoCreatedWindow(); 426 427 432 win->getCustomAttribute("WINDOW", &windowHnd); 428 433 windowHndStr << windowHnd; -
code/branches/FICN/src/orxonox/core/ConfigValueContainer.cc
r592 r663 27 27 28 28 #include <fstream> 29 #include <string>29 // #include <string> 30 30 #include "ConfigValueContainer.h" 31 31 -
code/branches/FICN/src/orxonox/core/ConfigValueContainer.h
r497 r663 74 74 /** @returns the value of the type Vector3. @param value This is only needed to determine the right type. */ 75 75 inline Ogre::Vector3 getValue(const Ogre::Vector3& value) { return this->value_vector3_; } 76 /** @returns the value of the type Colour £Value. @param value This is only needed to determine the right type. */76 /** @returns the value of the type Colour�Value. @param value This is only needed to determine the right type. */ 77 77 inline Ogre::ColourValue getValue(const Ogre::ColourValue& value) { return this->value_colourvalue_; } 78 78 -
code/branches/FICN/src/orxonox/objects/SpaceshipSteeringObject.cc
r614 r663 32 32 void SpaceshipSteeringObject::loadParams(TiXmlElement* xmlElem) 33 33 { 34 34 SpaceshipSteering* steering = orxonox::Orxonox::getSingleton()->getSteeringPointer(); 35 35 36 37 38 39 40 41 42 36 if (xmlElem->Attribute("node") && xmlElem->Attribute("forward") && xmlElem->Attribute("rotateupdown") && xmlElem->Attribute("rotaterightleft") && xmlElem->Attribute("looprightleft")) 37 { 38 std::string nodeStr = xmlElem->Attribute("node"); 39 std::string forwardStr = xmlElem->Attribute("forward"); 40 std::string rotateupdownStr = xmlElem->Attribute("rotateupdown"); 41 std::string rotaterightleftStr = xmlElem->Attribute("rotaterightleft"); 42 std::string looprightleftStr = xmlElem->Attribute("looprightleft"); 43 43 44 45 46 47 48 44 float forward, rotateupdown, rotaterightleft, looprightleft; 45 String2Number<float>(forward, forwardStr); 46 String2Number<float>(rotateupdown, rotateupdownStr); 47 String2Number<float>(rotaterightleft, rotaterightleftStr); 48 String2Number<float>(looprightleft, looprightleftStr); 49 49 50 50 steering = new SpaceshipSteering(forward, rotateupdown, rotaterightleft, looprightleft); 51 51 52 53 52 Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager(); 53 Ogre::SceneNode* sceneNode = (Ogre::SceneNode*)mgr->getRootSceneNode()->getChild(nodeStr); 54 54 55 55 steering->addNode(sceneNode); 56 56 57 57 58 58 59 59 60 61 60 COUT(4) << "Loader: Initialized spaceship steering at node " << nodeStr << " values "<< forward << " " << rotateupdown << " "<< rotaterightleft << " "<< looprightleft << " "<< std::endl << std::endl; 61 } 62 62 } 63 63 }
Note: See TracChangeset
for help on using the changeset viewer.