Changeset 3898 in orxonox.OLD for orxonox/branches/sound_engine/src/world_entities/test_gun.cc
- Timestamp:
- Apr 19, 2005, 8:31:01 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/sound_engine/src/world_entities/test_gun.cc
r3881 r3898 32 32 #include "animation3d.h" 33 33 34 #include "resource_manager.h" 35 #include "sound_engine.h" 36 34 37 using namespace std; 35 38 … … 72 75 this->animation->addKeyFrame(Vector(-2.6, 0.1, -2.5), Quaternion(), 0.1, ANIM_LINEAR); 73 76 } 77 78 this->shootSound = (Sound*)ResourceManager::getInstance()->load("sound/explo.wav", RESOURCE_SOUND_EFFECT, RP_LEVEL); 74 79 /* 75 80 if( this->leftRight == 0) … … 127 132 void TestGun::fire() 128 133 { 134 if (likely(this->shootSound != NULL)) 135 this->shootSound->play(); 136 129 137 if( !this->hasWeaponIdleTimeElapsed()) 130 138 { … … 144 152 145 153 this->animation->replay(); 154 146 155 } 147 156
Note: See TracChangeset
for help on using the changeset viewer.