MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getSound

Method getSound

src/Engine/SoundSet.cpp:163–170  ·  view source on GitHub ↗

* Returns a particular wave from the sound set. * @param i Sound number in the set. * @return Pointer to the respective sound. */

Source from the content-addressed store, hash-verified

161 * @return Pointer to the respective sound.
162 */
163Sound *SoundSet::getSound(unsigned int i)
164{
165 if (_sounds.find(i) != _sounds.end())
166 {
167 return _sounds[i];
168 }
169 return 0;
170}
171
172
173/**

Callers 15

createNewProjectileMethod · 0.45
thinkMethod · 0.45
performMeleeAttackMethod · 0.45
thinkMethod · 0.45
playMovementSoundMethod · 0.45
initMethod · 0.45
initMethod · 0.45
explodeMethod · 0.45
handleAIMethod · 0.45
endTurnMethod · 0.45
primaryActionMethod · 0.45
btnReloadClickMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected