Changeset 7460 in orxonox.OLD for trunk/src/world_entities/projectiles
- Timestamp:
- May 1, 2006, 12:30:34 AM (19 years ago)
- Location:
- trunk/src/world_entities/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/projectile.cc
r7221 r7460 68 68 else if (!explosionSound.empty()) 69 69 { 70 this->explosionBuffer = ( SoundBuffer*)ResourceManager::getInstance()->load(explosionSound, WAV);70 this->explosionBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load(explosionSound, WAV); 71 71 if (this->explosionBuffer != NULL) 72 72 { … … 90 90 else if (!engineSound.empty()) 91 91 { 92 this->engineBuffer = ( SoundBuffer*)ResourceManager::getInstance()->load(engineSound, WAV);92 this->engineBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load(engineSound, WAV); 93 93 if (this->engineBuffer != NULL) 94 94 { -
trunk/src/world_entities/projectiles/projectile.h
r7221 r7460 52 52 protected: 53 53 // energy 54 float energyMin; //!< The minimal Energy a Projectile needs to be emitted.55 bool bChargeable; //!< if the Projectile is Charegeable54 float energyMin; //!< The minimal Energy a Projectile needs to be emitted. 55 bool bChargeable; //!< if the Projectile is Charegeable 56 56 57 float lifeCycle; //!< The percentage of the Lifetime done [0-1]58 float lifeSpan; //!< The entire lifespan of the Shoot. in seconds57 float lifeCycle; //!< The percentage of the Lifetime done [0-1] 58 float lifeSpan; //!< The entire lifespan of the Shoot. in seconds 59 59 60 Vector flightDirection; //!< DOF direction in which the shoot flighs60 Vector flightDirection; //!< DOF direction in which the shoot flighs 61 61 62 Vector velocity; //!< velocity of the projectile.62 Vector velocity; //!< velocity of the projectile. 63 63 64 PNode* target; //!< A target for guided Weapons.64 PNode* target; //!< A target for guided Weapons. 65 65 66 SoundSourcesoundSource;66 OrxSound::SoundSource soundSource; 67 67 private: 68 SoundBuffer*explosionBuffer;69 SoundBuffer*engineBuffer;68 OrxSound::SoundBuffer* explosionBuffer; 69 OrxSound::SoundBuffer* engineBuffer; 70 70 }; 71 71
Note: See TracChangeset
for help on using the changeset viewer.