Changeset 9869 in orxonox.OLD for trunk/src/world_entities/effects/lightning_bolt.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/effects/lightning_bolt.cc
r9406 r9869 20 20 #include "material.h" 21 21 22 #include " util/loading/resource_manager.h"22 #include "sound/resource_sound_buffer.h" 23 23 24 24 25 25 26 26 27 28 CREATE_FACTORY(LightningBolt, CL_LIGHTNING_BOLT);29 27 #include "class_id_DEPRECATED.h" 28 ObjectListDefinitionID(LightningBolt, CL_LIGHTNING_BOLT); 29 CREATE_FACTORY(LightningBolt); 30 30 31 31 /** … … 34 34 LightningBolt::LightningBolt (const TiXmlElement* root) 35 35 { 36 this-> setClassID(CL_LIGHTNING_BOLT, "LightningBolt");36 this->registerObject(this, LightningBolt::_objectList); 37 37 38 38 this->toList(OM_COMMON); … … 56 56 this->seedTime = 4.0f; 57 57 58 this->soundSource = NULL;59 this->thunderBuffer = NULL;60 61 58 this->soundSource.setSourceNode(this); 62 59 63 //load sound 64 if (this->thunderBuffer != NULL) 65 ResourceManager::getInstance()->unload(this->thunderBuffer); 66 this->thunderBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/atmosphere/thunder.wav", WAV); 60 this->thunderBuffer = OrxSound::ResourceSoundBuffer("sound/atmosphere/thunder.wav"); 67 61 } 68 62
Note: See TracChangeset
for help on using the changeset viewer.