Changeset 584 for code/branches/FICN/src
- Timestamp:
- Dec 17, 2007, 5:44:18 PM (17 years ago)
- Location:
- code/branches/FICN/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/loader/LevelLoader.cc
r560 r584 39 39 #include "orxonox/core/Error.h" 40 40 #include "orxonox/objects/BaseObject.h" 41 #include "audio/AudioManager.h" 42 #include "orxonox/orxonox.h" 41 43 42 44 using namespace std; … … 100 102 { 101 103 TiXmlElement* loadElem; 104 TiXmlElement* audioElem; 102 105 TiXmlElement* worldElem; 103 106 TiXmlElement* tElem; … … 140 143 141 144 // Load audio 142 // TODO 143 144 // Load scripts 145 // TODO 146 145 audio::AudioManager* auMan = orxonox::Orxonox::getSingleton()->getAudioManagerPointer(); 146 audioElem = rootElement->FirstChildElement("audio"); 147 if (audioElem) 148 { 149 audioElem = audioElem->FirstChildElement("ambient"); 150 if (audioElem) 151 { 152 tNode = 0; 153 while( tNode = audioElem->IterateChildren( tNode ) ) 154 { 155 tElem = tNode->ToElement(); 156 std::string elemVal = tElem->Value(); 157 if (elemVal == "ogg") 158 { 159 auMan->ambientAdd(tElem->Attribute("src")); 160 } 161 } 162 } 163 } 164 147 165 // Load world 148 166 worldElem = rootElement->FirstChildElement("world"); -
code/branches/FICN/src/orxonox/orxonox.cc
r576 r584 430 430 loader_->loadLevel(); 431 431 432 /*433 auMan_->ambientAdd("a1");434 auMan_->ambientAdd("a2");435 auMan_->ambientAdd("a3");436 //auMan->ambientAdd("ambient1");437 432 auMan_->ambientStart(); 438 */439 433 } 440 434 … … 455 449 steering_->addNode(node); 456 450 457 451 /* 458 452 particle::ParticleInterface *e = new particle::ParticleInterface(mgr,"engine","Orxonox/strahl"); 459 453 e->particleSystem_->setParameter("local_space","true"); … … 461 455 e->setDirection(Vector3(0,0,-1)); 462 456 e->addToSceneNode(node); 457 */ 463 458 464 459 particle::ParticleInterface *w = new particle::ParticleInterface(mgr,"schuss","Orxonox/schuss"); … … 469 464 w->setPositionOfEmitter(1, Vector3(-10,10,0)); 470 465 w->addToSceneNode(node); 466 467 particle::ParticleInterface *tt = new particle::ParticleInterface(mgr,"thrusters","Orxonox/treibwerk"); 468 tt->particleSystem_->setParameter("local_space","true"); 469 tt->newEmitter(); 470 tt->setDirection(Vector3(0,0,1)); 471 tt->setPositionOfEmitter(0, Vector3(15,0,-60)); 472 tt->setPositionOfEmitter(1, Vector3(-15,0,-60)); 473 tt->addToSceneNode(node); 474 475 471 476 } 472 477 -
code/branches/FICN/src/orxonox/orxonox.h
r568 r584 43 43 inline GraphicsEngine* getOgrePointer() { return ogre_; }; 44 44 inline SpaceshipSteering* getSteeringPointer() { return steering_; }; 45 inline audio::AudioManager* getAudioManagerPointer() { return auMan_; }; 45 46 private: 46 47 Orxonox();
Note: See TracChangeset
for help on using the changeset viewer.