Changeset 9230 in orxonox.OLD for branches/presentation/src/world_entities/space_ships/hover.cc
- Timestamp:
- Jul 5, 2006, 2:06:28 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/space_ships/hover.cc
r9129 r9230 25 25 26 26 #include "util/loading/factory.h" 27 #include "util/loading/resource_manager.h" 28 27 29 #include "key_mapper.h" 28 30 #include "state.h" … … 43 45 ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ)) 44 46 ); 45 47 46 48 /** 47 49 * destructs the hover, deletes alocated memory … … 68 70 69 71 this->loadParams(doc.RootElement()); 72 73 //load sound 74 if (this->hoverBuffer != NULL) 75 ResourceManager::getInstance()->unload(this->hoverBuffer); 76 this->hoverBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/engine/hover.wav", WAV); 77 70 78 } 71 79 … … 107 115 void Hover::init() 108 116 { 117 118 this->hitEntity = NULL; 119 this->hoverBuffer = NULL; 120 109 121 // this->setRelDir(Quaternion(M_PI, Vector(1,0,0))); 110 122 this->setClassID(CL_HOVER, "Hover"); … … 216 228 State::getCameraNode()->setRelCoorSoft(-10, 0,0); 217 229 State::getCameraTargetNode()->setParentSoft(&this->cameraNode); 230 231 this->soundSource.play(this->hoverBuffer, 0.3f, true); 232 218 233 } 219 234
Note: See TracChangeset
for help on using the changeset viewer.