| 1101 | } |
| 1102 | |
| 1103 | void Projectile::updateSound() |
| 1104 | { |
| 1105 | if (!mDataBlock->isProjectileSoundValid()) |
| 1106 | return; |
| 1107 | |
| 1108 | if ( mSound ) |
| 1109 | { |
| 1110 | if ( mHasExploded ) |
| 1111 | mSound->stop(); |
| 1112 | else |
| 1113 | { |
| 1114 | if ( !mSound->isPlaying() ) |
| 1115 | mSound->play(); |
| 1116 | |
| 1117 | mSound->setVelocity( getVelocity() ); |
| 1118 | mSound->setTransform( getRenderTransform() ); |
| 1119 | } |
| 1120 | } |
| 1121 | } |
| 1122 | |
| 1123 | void Projectile::processTick( const Move *move ) |
| 1124 | { |
nothing calls this directly
no test coverage detected