Oolite 1.91.0.7677-250528-09ed63a
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
PlayerEntity(Sound) Category Reference

#include <PlayerEntitySound.h>

Instance Methods

(void) - setUpSound
(void) - setUpWeaponSounds
(void) - destroySound
(BOOL) - isBeeping
(void) - playIdentOn
(void) - playIdentOff
(void) - playIdentLockedOn
(void) - playMissileArmed
(void) - playMineArmed
(void) - playMissileSafe
(void) - playMissileLockedOn
(void) - playWeaponsOnline
(void) - playWeaponsOffline
(void) - playNextEquipmentSelected
(void) - playNextMissileSelected
(void) - playCargoJettisioned
(void) - playAutopilotOn
(void) - playAutopilotOff
(void) - playAutopilotOutOfRange
(void) - playAutopilotCannotDockWithTarget
(void) - playSaveOverwriteYes
(void) - playSaveOverwriteNo
(void) - playHoldFull
(void) - playJumpMassLocked
(void) - playTargetLost
(void) - playNoTargetInMemory
(void) - playTargetSwitched
(void) - playCloakingDeviceOn
(void) - playCloakingDeviceOff
(void) - playCloakingDeviceInsufficientEnergy
(void) - playMenuNavigationUp
(void) - playMenuNavigationDown
(void) - playMenuNavigationNot
(void) - playMenuPagePrevious
(void) - playMenuPageNext
(void) - playDismissedReportScreen
(void) - playDismissedMissionScreen
(void) - playChangedOption
(void) - updateFuelScoopSoundWithInterval:
(void) - startAfterburnerSound
(void) - stopAfterburnerSound
(void) - playBuyCommodity
(void) - playBuyShip
(void) - playSellCommodity
(void) - playCantBuyCommodity
(void) - playCantSellCommodity
(void) - playCantBuyShip
(void) - playHyperspaceNoTarget
(void) - playHyperspaceNoFuel
(void) - playHyperspaceBlocked
(void) - playHyperspaceDistanceTooGreat
(void) - playStandardHyperspace
(void) - playGalacticHyperspace
(void) - playHyperspaceAborted
(void) - playHitByECMSound
(void) - playFiredECMSound
(void) - playLaunchFromStation
(void) - playDockWithStation
(void) - playExitWitchspace
(void) - playHostileWarning
(void) - playAlertConditionRed
(void) - playIncomingMissile:
(void) - playEnergyLow
(void) - playDockingDenied
(void) - playWitchjumpFailure
(void) - playWitchjumpMisjump
(void) - playWitchjumpBlocked
(void) - playWitchjumpDistanceTooGreat
(void) - playWitchjumpInsufficientFuel
(void) - playFuelLeak
(void) - playShieldHit:weaponIdentifier:
(void) - playDirectHit:weaponIdentifier:
(void) - playScrapeDamage:
(void) - playLaserHit:offset:weaponIdentifier:
(void) - playWeaponOverheated:
(void) - playMissileLaunched:weaponIdentifier:
(void) - playMineLaunched:weaponIdentifier:
(void) - playEscapePodScooped
(void) - playAegisCloseToPlanet
(void) - playAegisCloseToStation
(void) - playGameOver
(void) - playLegacyScriptSound:
(void) - playInterfaceBeep: [implementation]
(void) - boop [implementation]
(void) - updateAfterburnerSound [implementation]

Detailed Description

Definition at line 27 of file PlayerEntitySound.h.

Method Documentation

◆ boop

- (void) boop
implementation

Extends class PlayerEntity.

Definition at line 199 of file PlayerEntitySound.m.

200{
201 [self playInterfaceBeep:@"[general-boop]"];
202}

References boop, and PlayerEntity::playInterfaceBeep:.

Referenced by boop.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ destroySound

- (void) destroySound

Extends class PlayerEntity.

Definition at line 160 of file PlayerEntitySound.m.

161{
166
169
175
181}
#define DESTROY(x)
Definition OOCocoa.h:77
static OOSoundSourcePool * sDamageSoundPool
static OOSoundSource * sEcmSource
static NSDictionary * weaponUnshieldedHit
static OOSoundSourcePool * sWeaponSoundPool
static OOSoundSource * sHyperspaceSoundSource
static OOSoundSourcePool * sBuySellSourcePool
static NSDictionary * weaponShotHit
static OOSoundSource * sBreakPatternSource
static OOSoundSource * sAfterburnerSources[2]
static NSDictionary * weaponLaunched
static OOSoundSource * sInterfaceBeepSource
static OOSoundSourcePool * sMiscSoundPool
static OOSoundSourcePool * sWarningSoundPool
static NSDictionary * weaponShieldHit
static NSDictionary * weaponShotMiss

References DESTROY, destroySound, sAfterburnerSources, sBreakPatternSource, sBuySellSourcePool, sDamageSoundPool, sEcmSource, sHyperspaceSoundSource, sInterfaceBeepSource, sMiscSoundPool, sWarningSoundPool, sWeaponSoundPool, weaponLaunched, weaponShieldHit, weaponShotHit, weaponShotMiss, and weaponUnshieldedHit.

Referenced by destroySound.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isBeeping

- (BOOL) isBeeping

Extends class PlayerEntity.

Definition at line 193 of file PlayerEntitySound.m.

References isBeeping, and OOSoundSource::isPlaying.

Referenced by isBeeping.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playAegisCloseToPlanet

- (void) playAegisCloseToPlanet

Extends class PlayerEntity.

Definition at line 716 of file PlayerEntitySound.m.

717{
718 [sMiscSoundPool playSoundWithKey:@"[aegis-planet]" position:kInterfaceBeepPosition];
719}
void playSoundWithKey:position:(NSString *key,[position] Vector position)

References playAegisCloseToPlanet, and OOSoundSourcePool::playSoundWithKey:position:.

Referenced by playAegisCloseToPlanet.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playAegisCloseToStation

- (void) playAegisCloseToStation

Extends class PlayerEntity.

Definition at line 722 of file PlayerEntitySound.m.

723{
724 [sMiscSoundPool playSoundWithKey:@"[aegis-station]" position:kInterfaceBeepPosition];
725}

References playAegisCloseToStation, and OOSoundSourcePool::playSoundWithKey:position:.

Referenced by playAegisCloseToStation.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playAlertConditionRed

- (void) playAlertConditionRed

Extends class PlayerEntity.

Definition at line 587 of file PlayerEntitySound.m.

588{
589 [sWarningSoundPool playSoundWithKey:@"[alert-condition-red]" priority:2 position:kInterfaceWarningPosition];
590}
void playSoundWithKey:priority:position:(NSString *key,[priority] float priority,[position] Vector position)

References playAlertConditionRed, and OOSoundSourcePool::playSoundWithKey:priority:position:.

Referenced by playAlertConditionRed.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playAutopilotCannotDockWithTarget

- (void) playAutopilotCannotDockWithTarget

Extends class PlayerEntity.

Definition at line 299 of file PlayerEntitySound.m.

300{
301 [self playInterfaceBeep:@"[autopilot-cannot-dock-with-target]"];
302}

References playAutopilotCannotDockWithTarget, and PlayerEntity::playInterfaceBeep:.

Referenced by playAutopilotCannotDockWithTarget.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playAutopilotOff

- (void) playAutopilotOff

Extends class PlayerEntity.

Definition at line 283 of file PlayerEntitySound.m.

284{
285 // only if still alive
286 if (energy > 0.0)
287 {
288 [self playInterfaceBeep:@"[autopilot-off]"];
289 }
290}

References playAutopilotOff, and PlayerEntity::playInterfaceBeep:.

Referenced by playAutopilotOff.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playAutopilotOn

- (void) playAutopilotOn

Extends class PlayerEntity.

Definition at line 277 of file PlayerEntitySound.m.

278{
279 [self playInterfaceBeep:@"[autopilot-on]"];
280}

References playAutopilotOn, and PlayerEntity::playInterfaceBeep:.

Referenced by playAutopilotOn.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playAutopilotOutOfRange

- (void) playAutopilotOutOfRange

Extends class PlayerEntity.

Definition at line 293 of file PlayerEntitySound.m.

294{
295 [self playInterfaceBeep:@"[autopilot-out-of-range]"];
296}

References playAutopilotOutOfRange, and PlayerEntity::playInterfaceBeep:.

Referenced by playAutopilotOutOfRange.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playBuyCommodity

- (void) playBuyCommodity

Extends class PlayerEntity.

Definition at line 497 of file PlayerEntitySound.m.

498{
499 [sBuySellSourcePool playSoundWithKey:@"[buy-commodity]"];
500}
void playSoundWithKey:(NSString *key)

References playBuyCommodity, and OOSoundSourcePool::playSoundWithKey:.

Referenced by playBuyCommodity.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playBuyShip

- (void) playBuyShip

Extends class PlayerEntity.

Definition at line 503 of file PlayerEntitySound.m.

504{
505 [sBuySellSourcePool playSoundWithKey:@"[buy-ship]"];
506}

References playBuyShip, and OOSoundSourcePool::playSoundWithKey:.

Referenced by playBuyShip.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playCantBuyCommodity

- (void) playCantBuyCommodity

Extends class PlayerEntity.

Definition at line 515 of file PlayerEntitySound.m.

516{
517 [sBuySellSourcePool playSoundWithKey:@"[could-not-buy-commodity]"];
518}

References playCantBuyCommodity, and OOSoundSourcePool::playSoundWithKey:.

Referenced by playCantBuyCommodity.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playCantBuyShip

- (void) playCantBuyShip

Extends class PlayerEntity.

Definition at line 527 of file PlayerEntitySound.m.

528{
529 [sBuySellSourcePool playSoundWithKey:@"[could-not-buy-ship]"];
530}

References playCantBuyShip, and OOSoundSourcePool::playSoundWithKey:.

Referenced by playCantBuyShip.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playCantSellCommodity

- (void) playCantSellCommodity

Extends class PlayerEntity.

Definition at line 521 of file PlayerEntitySound.m.

522{
523 [sBuySellSourcePool playSoundWithKey:@"[could-not-sell-commodity]"];
524}

References playCantSellCommodity, and OOSoundSourcePool::playSoundWithKey:.

Referenced by playCantSellCommodity.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playCargoJettisioned

- (void) playCargoJettisioned

Extends class PlayerEntity.

Definition at line 271 of file PlayerEntitySound.m.

272{
273 [self playInterfaceBeep:@"[cargo-jettisoned]"];
274}

References playCargoJettisioned, and PlayerEntity::playInterfaceBeep:.

Referenced by playCargoJettisioned.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playChangedOption

- (void) playChangedOption

Extends class PlayerEntity.

Definition at line 423 of file PlayerEntitySound.m.

424{
425 [self playInterfaceBeep:@"[changed-option]"];
426}

References playChangedOption, and PlayerEntity::playInterfaceBeep:.

Referenced by playChangedOption.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playCloakingDeviceInsufficientEnergy

- (void) playCloakingDeviceInsufficientEnergy

Extends class PlayerEntity.

Definition at line 491 of file PlayerEntitySound.m.

492{
493 [self playInterfaceBeep:@"[cloaking-device-insufficent-energy]"];
494}

References playCloakingDeviceInsufficientEnergy, and PlayerEntity::playInterfaceBeep:.

Referenced by playCloakingDeviceInsufficientEnergy.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playCloakingDeviceOff

- (void) playCloakingDeviceOff

Extends class PlayerEntity.

Definition at line 375 of file PlayerEntitySound.m.

376{
377 [self playInterfaceBeep:@"[cloaking-device-off]"];
378}

References playCloakingDeviceOff, and PlayerEntity::playInterfaceBeep:.

Referenced by playCloakingDeviceOff.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playCloakingDeviceOn

- (void) playCloakingDeviceOn

Extends class PlayerEntity.

Definition at line 369 of file PlayerEntitySound.m.

370{
371 [self playInterfaceBeep:@"[cloaking-device-on]"];
372}

References playCloakingDeviceOn, and PlayerEntity::playInterfaceBeep:.

Referenced by playCloakingDeviceOn.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playDirectHit:weaponIdentifier:

- (void) playDirectHit: (Vector) attackVector
weaponIdentifier: (NSString *) weaponIdentifier 

Extends class PlayerEntity.

Definition at line 655 of file PlayerEntitySound.m.

655 :(Vector)attackVector weaponIdentifier:(NSString *) weaponIdentifier
656{
657 NSString *identifier = [weaponUnshieldedHit objectForKey:weaponIdentifier];
658 if (!identifier) identifier = @"[player-direct-hit]";
659 [sDamageSoundPool playSoundWithKey:identifier position:attackVector];
660}

References OOSoundSourcePool::playSoundWithKey:position:.

Here is the call graph for this function:

◆ playDismissedMissionScreen

- (void) playDismissedMissionScreen

Extends class PlayerEntity.

Definition at line 417 of file PlayerEntitySound.m.

418{
419 [self playInterfaceBeep:@"[dismissed-mission-screen]"];
420}

References playDismissedMissionScreen, and PlayerEntity::playInterfaceBeep:.

Referenced by playDismissedMissionScreen.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playDismissedReportScreen

- (void) playDismissedReportScreen

Extends class PlayerEntity.

Definition at line 411 of file PlayerEntitySound.m.

412{
413 [self playInterfaceBeep:@"[dismissed-report-screen]"];
414}

References playDismissedReportScreen, and PlayerEntity::playInterfaceBeep:.

Referenced by playDismissedReportScreen.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playDockingDenied

- (void) playDockingDenied

Extends class PlayerEntity.

Definition at line 605 of file PlayerEntitySound.m.

606{
607 [sWarningSoundPool playSoundWithKey:@"[autopilot-denied]" priority:1 position:kInterfaceWarningPosition];
608}

References playDockingDenied, and OOSoundSourcePool::playSoundWithKey:priority:position:.

Referenced by playDockingDenied.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playDockWithStation

- (void) playDockWithStation

Extends class PlayerEntity.

Definition at line 569 of file PlayerEntitySound.m.

570{
571 [sBreakPatternSource playCustomSoundWithKey:@"[player-dock-with-station]"];
572}
void playCustomSoundWithKey:(NSString *key)
Definition Universe.m:11104

References OOSoundSource::playCustomSoundWithKey:, and playDockWithStation.

Referenced by playDockWithStation.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playEnergyLow

- (void) playEnergyLow

Extends class PlayerEntity.

Definition at line 599 of file PlayerEntitySound.m.

600{
601 [sWarningSoundPool playSoundWithKey:@"[energy-low]" priority:0.5 position:kInterfaceWarningPosition];
602}

References playEnergyLow, and OOSoundSourcePool::playSoundWithKey:priority:position:.

Referenced by playEnergyLow.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playEscapePodScooped

- (void) playEscapePodScooped

Extends class PlayerEntity.

Definition at line 710 of file PlayerEntitySound.m.

711{
712 [sMiscSoundPool playSoundWithKey:@"[escape-pod-scooped]" position:kInterfaceBeepPosition];
713}

References playEscapePodScooped, and OOSoundSourcePool::playSoundWithKey:position:.

Referenced by playEscapePodScooped.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playExitWitchspace

- (void) playExitWitchspace

Extends class PlayerEntity.

Definition at line 575 of file PlayerEntitySound.m.

576{
577 [sBreakPatternSource playCustomSoundWithKey:@"[player-exit-witchspace]"];
578}

References OOSoundSource::playCustomSoundWithKey:, and playExitWitchspace.

Referenced by playExitWitchspace.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playFiredECMSound

- (void) playFiredECMSound

Extends class PlayerEntity.

Definition at line 557 of file PlayerEntitySound.m.

558{
559 if (![sEcmSource isPlaying]) [sEcmSource playCustomSoundWithKey:@"[player-fired-ecm]"];
560}

References OOSoundSource::playCustomSoundWithKey:, playFiredECMSound, and sEcmSource.

Referenced by playFiredECMSound.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playFuelLeak

- (void) playFuelLeak

Extends class PlayerEntity.

Definition at line 641 of file PlayerEntitySound.m.

642{
643 [sWarningSoundPool playSoundWithKey:@"[fuel-leak]" priority:0.5 position:kWitchspacePosition];
644}

References playFuelLeak, and OOSoundSourcePool::playSoundWithKey:priority:position:.

Referenced by playFuelLeak.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playGalacticHyperspace

- (void) playGalacticHyperspace

Extends class PlayerEntity.

Definition at line 539 of file PlayerEntitySound.m.

540{
541 [sHyperspaceSoundSource playCustomSoundWithKey:@"[galactic-hyperspace-countdown-begun]"];
542}

References OOSoundSource::playCustomSoundWithKey:, and playGalacticHyperspace.

Referenced by playGalacticHyperspace.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playGameOver

- (void) playGameOver

Extends class PlayerEntity.

Definition at line 728 of file PlayerEntitySound.m.

729{
730 [sMiscSoundPool playSoundWithKey:@"[game-over]"];
731}

References playGameOver, and OOSoundSourcePool::playSoundWithKey:.

Referenced by playGameOver.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playHitByECMSound

- (void) playHitByECMSound

Extends class PlayerEntity.

Definition at line 551 of file PlayerEntitySound.m.

552{
553 if (![sEcmSource isPlaying]) [sEcmSource playCustomSoundWithKey:@"[player-hit-by-ecm]"];
554}

References OOSoundSource::playCustomSoundWithKey:, playHitByECMSound, and sEcmSource.

Referenced by playHitByECMSound.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playHoldFull

- (void) playHoldFull

Extends class PlayerEntity.

Definition at line 317 of file PlayerEntitySound.m.

318{
319 [self playInterfaceBeep:@"[hold-full]"];
320}

References playHoldFull, and PlayerEntity::playInterfaceBeep:.

Referenced by playHoldFull.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playHostileWarning

- (void) playHostileWarning

Extends class PlayerEntity.

Definition at line 581 of file PlayerEntitySound.m.

582{
583 [sWarningSoundPool playSoundWithKey:@"[hostile-warning]" priority:1 position:kInterfaceWarningPosition];
584}

References playHostileWarning, and OOSoundSourcePool::playSoundWithKey:priority:position:.

Referenced by playHostileWarning.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playHyperspaceAborted

- (void) playHyperspaceAborted

Extends class PlayerEntity.

Definition at line 545 of file PlayerEntitySound.m.

546{
547 [sHyperspaceSoundSource playCustomSoundWithKey:@"[hyperspace-countdown-aborted]"];
548}

References OOSoundSource::playCustomSoundWithKey:, and playHyperspaceAborted.

Referenced by playHyperspaceAborted.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playHyperspaceBlocked

- (void) playHyperspaceBlocked

Extends class PlayerEntity.

Definition at line 359 of file PlayerEntitySound.m.

360{
361 [self playInterfaceBeep:@"[hyperspace-blocked]"];
362}

References playHyperspaceBlocked, and PlayerEntity::playInterfaceBeep:.

Referenced by playHyperspaceBlocked.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playHyperspaceDistanceTooGreat

- (void) playHyperspaceDistanceTooGreat

Extends class PlayerEntity.

Definition at line 364 of file PlayerEntitySound.m.

365{
366 [self playInterfaceBeep:@"[witch-too-far]"];
367}

References playHyperspaceDistanceTooGreat, and PlayerEntity::playInterfaceBeep:.

Referenced by playHyperspaceDistanceTooGreat.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playHyperspaceNoFuel

- (void) playHyperspaceNoFuel

Extends class PlayerEntity.

Definition at line 353 of file PlayerEntitySound.m.

354{
355 [self playInterfaceBeep:@"[witch-no-fuel]"];
356}

References playHyperspaceNoFuel, and PlayerEntity::playInterfaceBeep:.

Referenced by playHyperspaceNoFuel.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playHyperspaceNoTarget

- (void) playHyperspaceNoTarget

Extends class PlayerEntity.

Definition at line 347 of file PlayerEntitySound.m.

348{
349 [self playInterfaceBeep:@"[witch-no-target]"];
350}

References playHyperspaceNoTarget, and PlayerEntity::playInterfaceBeep:.

Referenced by playHyperspaceNoTarget.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playIdentLockedOn

- (void) playIdentLockedOn

Extends class PlayerEntity.

Definition at line 217 of file PlayerEntitySound.m.

218{
219 [self playInterfaceBeep:@"[ident-locked-on]"];
220}

References playIdentLockedOn, and PlayerEntity::playInterfaceBeep:.

Referenced by playIdentLockedOn.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playIdentOff

- (void) playIdentOff

Extends class PlayerEntity.

Definition at line 211 of file PlayerEntitySound.m.

212{
213 [self playInterfaceBeep:@"[ident-off]"];
214}

References playIdentOff, and PlayerEntity::playInterfaceBeep:.

Referenced by playIdentOff.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playIdentOn

- (void) playIdentOn

Extends class PlayerEntity.

Definition at line 205 of file PlayerEntitySound.m.

206{
207 [self playInterfaceBeep:@"[ident-on]"];
208}

References playIdentOn, and PlayerEntity::playInterfaceBeep:.

Referenced by playIdentOn.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playIncomingMissile:

- (void) playIncomingMissile: (Vector) missileVector

Extends class PlayerEntity.

Definition at line 593 of file PlayerEntitySound.m.

593 :(Vector)missileVector
594{
595 [sWarningSoundPool playSoundWithKey:@"[incoming-missile]" priority:3 position:missileVector];
596}

References OOSoundSourcePool::playSoundWithKey:priority:position:.

Here is the call graph for this function:

◆ playInterfaceBeep:

- (void) playInterfaceBeep: (NSString *) beepKey
implementation

Extends class PlayerEntity.

Definition at line 184 of file PlayerEntitySound.m.

184 :(NSString *)beepKey
185{
186#if OOLITE_WINDOWS
187 if ([self status] == STATUS_START_GAME) { return; }
188#endif
190}
void playSound:(OOSound *inSound)
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:11063

References OOSoundSource::playSound:, and OOSound::soundWithCustomSoundKey:.

Here is the call graph for this function:

◆ playJumpMassLocked

- (void) playJumpMassLocked

Extends class PlayerEntity.

Definition at line 323 of file PlayerEntitySound.m.

324{
325 [self playInterfaceBeep:@"[jump-mass-locked]"];
326}

References PlayerEntity::playInterfaceBeep:, and playJumpMassLocked.

Referenced by playJumpMassLocked.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playLaserHit:offset:weaponIdentifier:

- (void) playLaserHit: (BOOL) hit
offset: (Vector) weaponOffset
weaponIdentifier: (NSString *) weaponIdentifier 

Extends class PlayerEntity.

Definition at line 669 of file PlayerEntitySound.m.

669 :(BOOL)hit offset:(Vector)weaponOffset weaponIdentifier:(NSString *)weaponIdentifier
670{
671 NSString *identifier = nil;
672 if (hit)
673 {
674 identifier = [weaponShotHit objectForKey:weaponIdentifier];
675 if (!identifier) identifier = @"[player-laser-hit]";
676 [sWeaponSoundPool playSoundWithKey:identifier priority:1.0 expiryTime:0.05 overlap:YES position:weaponOffset];
677 }
678 else
679 {
680 identifier = [weaponShotMiss objectForKey:weaponIdentifier];
681 if (!identifier) identifier = @"[player-laser-miss]";
682 [sWeaponSoundPool playSoundWithKey:identifier priority:1.0 expiryTime:0.05 overlap:YES position:weaponOffset];
683
684 }
685}
return nil
void playSoundWithKey:priority:expiryTime:overlap:position:(NSString *key,[priority] float priority,[expiryTime] OOTimeDelta expiryTime,[overlap] BOOL overlap,[position] Vector position)
voidpf uLong offset
Definition ioapi.h:140

References nil, and OOSoundSourcePool::playSoundWithKey:priority:expiryTime:overlap:position:.

Here is the call graph for this function:

◆ playLaunchFromStation

- (void) playLaunchFromStation

Extends class PlayerEntity.

Definition at line 563 of file PlayerEntitySound.m.

564{
565 [sBreakPatternSource playCustomSoundWithKey:@"[player-launch-from-station]"];
566}

References OOSoundSource::playCustomSoundWithKey:, and playLaunchFromStation.

Referenced by playLaunchFromStation.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playLegacyScriptSound:

- (void) playLegacyScriptSound: (NSString *) key

Extends class PlayerEntity.

Definition at line 734 of file PlayerEntitySound.m.

734 :(NSString *)key
735{
737}
void playSoundWithKey:priority:(NSString *key,[priority] float priority)

References OOSoundSourcePool::playSoundWithKey:priority:.

Here is the call graph for this function:

◆ playMenuNavigationDown

- (void) playMenuNavigationDown

Extends class PlayerEntity.

Definition at line 387 of file PlayerEntitySound.m.

388{
389 [self playInterfaceBeep:@"[menu-navigation-down]"];
390}

References PlayerEntity::playInterfaceBeep:, and playMenuNavigationDown.

Referenced by playMenuNavigationDown.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playMenuNavigationNot

- (void) playMenuNavigationNot

Extends class PlayerEntity.

Definition at line 393 of file PlayerEntitySound.m.

394{
395 [self playInterfaceBeep:@"[menu-navigation-not]"];
396}

References PlayerEntity::playInterfaceBeep:, and playMenuNavigationNot.

Referenced by playMenuNavigationNot.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playMenuNavigationUp

- (void) playMenuNavigationUp

Extends class PlayerEntity.

Definition at line 381 of file PlayerEntitySound.m.

382{
383 [self playInterfaceBeep:@"[menu-navigation-up]"];
384}

References PlayerEntity::playInterfaceBeep:, and playMenuNavigationUp.

Referenced by playMenuNavigationUp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playMenuPageNext

- (void) playMenuPageNext

Extends class PlayerEntity.

Definition at line 405 of file PlayerEntitySound.m.

406{
407 [self playInterfaceBeep:@"[menu-previous-page]"];
408}

References PlayerEntity::playInterfaceBeep:, and playMenuPageNext.

Referenced by playMenuPageNext.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playMenuPagePrevious

- (void) playMenuPagePrevious

Extends class PlayerEntity.

Definition at line 399 of file PlayerEntitySound.m.

400{
401 [self playInterfaceBeep:@"[menu-next-page]"];
402}

References PlayerEntity::playInterfaceBeep:, and playMenuPagePrevious.

Referenced by playMenuPagePrevious.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playMineArmed

- (void) playMineArmed

Extends class PlayerEntity.

Definition at line 229 of file PlayerEntitySound.m.

230{
231 [self playInterfaceBeep:@"[mine-armed]"];
232}

References PlayerEntity::playInterfaceBeep:, and playMineArmed.

Referenced by playMineArmed.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playMineLaunched:weaponIdentifier:

- (void) playMineLaunched: (Vector) weaponOffset
weaponIdentifier: (NSString *) weaponIdentifier 

Extends class PlayerEntity.

Definition at line 702 of file PlayerEntitySound.m.

702 :(Vector)weaponOffset weaponIdentifier:(NSString *)weaponIdentifier
703{
704 NSString *identifier = [weaponLaunched objectForKey:weaponIdentifier];
705 if (!identifier) identifier = @"[mine_launched]";
706 [sWeaponSoundPool playSoundWithKey:identifier position:weaponOffset];
707}

References OOSoundSourcePool::playSoundWithKey:position:.

Here is the call graph for this function:

◆ playMissileArmed

- (void) playMissileArmed

Extends class PlayerEntity.

Definition at line 223 of file PlayerEntitySound.m.

224{
225 [self playInterfaceBeep:@"[missile-armed]"];
226}

References PlayerEntity::playInterfaceBeep:, and playMissileArmed.

Referenced by playMissileArmed.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playMissileLaunched:weaponIdentifier:

- (void) playMissileLaunched: (Vector) weaponOffset
weaponIdentifier: (NSString *) weaponIdentifier 

Extends class PlayerEntity.

Definition at line 694 of file PlayerEntitySound.m.

694 :(Vector)weaponOffset weaponIdentifier:(NSString *)weaponIdentifier
695{
696 NSString *identifier = [weaponLaunched objectForKey:weaponIdentifier];
697 if (!identifier) identifier = @"[missile_launched]";
698 [sWeaponSoundPool playSoundWithKey:identifier position:weaponOffset];
699}

References OOSoundSourcePool::playSoundWithKey:position:.

Here is the call graph for this function:

◆ playMissileLockedOn

- (void) playMissileLockedOn

Extends class PlayerEntity.

Definition at line 241 of file PlayerEntitySound.m.

242{
243 [self playInterfaceBeep:@"[missile-locked-on]"];
244}

References PlayerEntity::playInterfaceBeep:, and playMissileLockedOn.

Referenced by playMissileLockedOn.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playMissileSafe

- (void) playMissileSafe

Extends class PlayerEntity.

Definition at line 235 of file PlayerEntitySound.m.

236{
237 [self playInterfaceBeep:@"[missile-safe]"];
238}

References PlayerEntity::playInterfaceBeep:, and playMissileSafe.

Referenced by playMissileSafe.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playNextEquipmentSelected

- (void) playNextEquipmentSelected

Extends class PlayerEntity.

Definition at line 247 of file PlayerEntitySound.m.

248{
249 [self playInterfaceBeep:@"[next-equipment-selected]"];
250}

References PlayerEntity::playInterfaceBeep:, and playNextEquipmentSelected.

Referenced by playNextEquipmentSelected.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playNextMissileSelected

- (void) playNextMissileSelected

Extends class PlayerEntity.

Definition at line 253 of file PlayerEntitySound.m.

254{
255 [self playInterfaceBeep:@"[next-missile-selected]"];
256}

References PlayerEntity::playInterfaceBeep:, and playNextMissileSelected.

Referenced by playNextMissileSelected.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playNoTargetInMemory

- (void) playNoTargetInMemory

Extends class PlayerEntity.

Definition at line 335 of file PlayerEntitySound.m.

336{
337 [self playInterfaceBeep:@"[no-target-in-memory]"];
338}

References PlayerEntity::playInterfaceBeep:, and playNoTargetInMemory.

Referenced by playNoTargetInMemory.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playSaveOverwriteNo

- (void) playSaveOverwriteNo

Extends class PlayerEntity.

Definition at line 311 of file PlayerEntitySound.m.

312{
313 [self playInterfaceBeep:@"[save-overwrite-no]"];
314}

References PlayerEntity::playInterfaceBeep:, and playSaveOverwriteNo.

Referenced by playSaveOverwriteNo.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playSaveOverwriteYes

- (void) playSaveOverwriteYes

Extends class PlayerEntity.

Definition at line 305 of file PlayerEntitySound.m.

306{
307 [self playInterfaceBeep:@"[save-overwrite-yes]"];
308}

References PlayerEntity::playInterfaceBeep:, and playSaveOverwriteYes.

Referenced by playSaveOverwriteYes.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playScrapeDamage:

- (void) playScrapeDamage: (Vector) attackVector

Extends class PlayerEntity.

Definition at line 663 of file PlayerEntitySound.m.

663 :(Vector)attackVector
664{
665 [sDamageSoundPool playSoundWithKey:@"[player-scrape-damage]" position:attackVector];
666}

References OOSoundSourcePool::playSoundWithKey:position:.

Here is the call graph for this function:

◆ playSellCommodity

- (void) playSellCommodity

Extends class PlayerEntity.

Definition at line 509 of file PlayerEntitySound.m.

510{
511 [sBuySellSourcePool playSoundWithKey:@"[sell-commodity]"];
512}

References playSellCommodity, and OOSoundSourcePool::playSoundWithKey:.

Referenced by playSellCommodity.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playShieldHit:weaponIdentifier:

- (void) playShieldHit: (Vector) attackVector
weaponIdentifier: (NSString *) weaponIdentifier 

Extends class PlayerEntity.

Definition at line 647 of file PlayerEntitySound.m.

647 :(Vector)attackVector weaponIdentifier:(NSString *)weaponIdentifier
648{
649 NSString *identifier = [weaponShieldHit objectForKey:weaponIdentifier];
650 if (!identifier) identifier = @"[player-hit-by-weapon]";
651 [sDamageSoundPool playSoundWithKey:identifier position:attackVector];
652}

References OOSoundSourcePool::playSoundWithKey:position:.

Here is the call graph for this function:

◆ playStandardHyperspace

- (void) playStandardHyperspace

Extends class PlayerEntity.

Definition at line 533 of file PlayerEntitySound.m.

534{
535 [sHyperspaceSoundSource playCustomSoundWithKey:@"[hyperspace-countdown-begun]"];
536}

References OOSoundSource::playCustomSoundWithKey:, and playStandardHyperspace.

Referenced by playStandardHyperspace.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playTargetLost

- (void) playTargetLost

Extends class PlayerEntity.

Definition at line 329 of file PlayerEntitySound.m.

330{
331 [self playInterfaceBeep:@"[target-lost]"];
332}

References PlayerEntity::playInterfaceBeep:, and playTargetLost.

Referenced by playTargetLost.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playTargetSwitched

- (void) playTargetSwitched

Extends class PlayerEntity.

Definition at line 341 of file PlayerEntitySound.m.

342{
343 [self playInterfaceBeep:@"[target-switched]"];
344}

References PlayerEntity::playInterfaceBeep:, and playTargetSwitched.

Referenced by playTargetSwitched.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playWeaponOverheated:

- (void) playWeaponOverheated: (Vector) weaponOffset

Extends class PlayerEntity.

Definition at line 688 of file PlayerEntitySound.m.

688 :(Vector)weaponOffset
689{
690 [sWeaponSoundPool playSoundWithKey:@"[weapon-overheat]" overlap:NO position:weaponOffset];
691}
void playSoundWithKey:overlap:position:(NSString *key,[overlap] BOOL overlap,[position] Vector position)

References OOSoundSourcePool::playSoundWithKey:overlap:position:.

Here is the call graph for this function:

◆ playWeaponsOffline

- (void) playWeaponsOffline

Extends class PlayerEntity.

Definition at line 265 of file PlayerEntitySound.m.

266{
267 [self playInterfaceBeep:@"[weapons-offline]"];
268}

References PlayerEntity::playInterfaceBeep:, and playWeaponsOffline.

Referenced by playWeaponsOffline.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playWeaponsOnline

- (void) playWeaponsOnline

Extends class PlayerEntity.

Definition at line 259 of file PlayerEntitySound.m.

260{
261 [self playInterfaceBeep:@"[weapons-online]"];
262}

References PlayerEntity::playInterfaceBeep:, and playWeaponsOnline.

Referenced by playWeaponsOnline.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playWitchjumpBlocked

- (void) playWitchjumpBlocked

Extends class PlayerEntity.

Definition at line 623 of file PlayerEntitySound.m.

624{
625 [sWarningSoundPool playSoundWithKey:@"[witch-blocked-by-@]" priority:1.3 position:kWitchspacePosition];
626}

References OOSoundSourcePool::playSoundWithKey:priority:position:, and playWitchjumpBlocked.

Referenced by playWitchjumpBlocked.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playWitchjumpDistanceTooGreat

- (void) playWitchjumpDistanceTooGreat

Extends class PlayerEntity.

Definition at line 629 of file PlayerEntitySound.m.

630{
631 [sWarningSoundPool playSoundWithKey:@"[witch-too-far]" priority:1.3 position:kWitchspacePosition];
632}

References OOSoundSourcePool::playSoundWithKey:priority:position:, and playWitchjumpDistanceTooGreat.

Referenced by playWitchjumpDistanceTooGreat.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playWitchjumpFailure

- (void) playWitchjumpFailure

Extends class PlayerEntity.

Definition at line 611 of file PlayerEntitySound.m.

612{
613 [sWarningSoundPool playSoundWithKey:@"[witchdrive-failure]" priority:1.5 position:kWitchspacePosition];
614}

References OOSoundSourcePool::playSoundWithKey:priority:position:, and playWitchjumpFailure.

Referenced by playWitchjumpFailure.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playWitchjumpInsufficientFuel

- (void) playWitchjumpInsufficientFuel

Extends class PlayerEntity.

Definition at line 635 of file PlayerEntitySound.m.

636{
637 [sWarningSoundPool playSoundWithKey:@"[witch-no-fuel]" priority:1.3 position:kWitchspacePosition];
638}

References OOSoundSourcePool::playSoundWithKey:priority:position:, and playWitchjumpInsufficientFuel.

Referenced by playWitchjumpInsufficientFuel.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ playWitchjumpMisjump

- (void) playWitchjumpMisjump

Extends class PlayerEntity.

Definition at line 617 of file PlayerEntitySound.m.

618{
619 [sWarningSoundPool playSoundWithKey:@"[witchdrive-malfunction]" priority:1.5 position:kWitchspacePosition];
620}

References OOSoundSourcePool::playSoundWithKey:priority:position:, and playWitchjumpMisjump.

Referenced by playWitchjumpMisjump.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUpSound

- (void) setUpSound

Extends class PlayerEntity.

Definition at line 73 of file PlayerEntitySound.m.

74{
75 [self destroySound];
76
77 sInterfaceBeepSource = [[OOSoundSource alloc] init];
78 [sInterfaceBeepSource setPosition:kInterfaceBeepPosition];
79
80 sBreakPatternSource = [[OOSoundSource alloc] init];
81 [sBreakPatternSource setPosition:kBreakPatternPosition];
82
83 sEcmSource = [[OOSoundSource alloc] init];
84 [sEcmSource setPosition:kEcmPosition];
85
87 [sHyperspaceSoundSource setPosition:kWitchspacePosition];
88
89 sBuySellSourcePool = [[OOSoundSourcePool alloc] initWithCount:kBuySellSourcePoolSize minRepeatTime:0.0];
90 sWarningSoundPool = [[OOSoundSourcePool alloc] initWithCount:kWarningPoolSize minRepeatTime:0.0];
91 sWeaponSoundPool = [[OOSoundSourcePool alloc] initWithCount:kWeaponPoolSize minRepeatTime:0.0];
92 sDamageSoundPool = [[OOSoundSourcePool alloc] initWithCount:kDamagePoolSize minRepeatTime:0.1]; // Repeat time limit is to avoid playing a scrape sound every frame on glancing scrapes. This does limit the number of laser hits that can be played in a furrball, though; maybe lasers and scrapes should use different pools.
93 sMiscSoundPool = [[OOSoundSourcePool alloc] initWithCount:kMiscPoolSize minRepeatTime:0.0];
94
95 // Two sources with the same sound are used to simulate looping.
96 OOSound *afterburnerSound = [ResourceManager ooSoundNamed:@"afterburner1.ogg" inFolder:@"Sounds"];
97 sAfterburnerSources[0] = [[OOSoundSource alloc] initWithSound:afterburnerSound];
98 [sAfterburnerSources[0] setPosition:kAfterburner1Position];
99 sAfterburnerSources[1] = [[OOSoundSource alloc] initWithSound:afterburnerSound];
100 [sAfterburnerSources[1] setPosition:kAfterburner2Position];
101}
void setPosition:(Vector inPosition)
OOSound * ooSoundNamed:inFolder:(NSString *fileName,[inFolder] NSString *folderName)

References PlayerEntity::destroySound, ResourceManager::ooSoundNamed:inFolder:, sAfterburnerSources, sBreakPatternSource, sBuySellSourcePool, sDamageSoundPool, sEcmSource, OOSoundSource::setPosition:, setUpSound, sHyperspaceSoundSource, sInterfaceBeepSource, sMiscSoundPool, sWarningSoundPool, and sWeaponSoundPool.

Referenced by setUpSound.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUpWeaponSounds

- (void) setUpWeaponSounds

Extends class PlayerEntity.

Definition at line 105 of file PlayerEntitySound.m.

106{
107 NSArray *eqTypes = [OOEquipmentType allEquipmentTypes];
108 NSMutableDictionary *shotMissSounds = [NSMutableDictionary dictionary];
109 NSMutableDictionary *shotHitSounds = [NSMutableDictionary dictionary];
110 NSMutableDictionary *shieldHitSounds = [NSMutableDictionary dictionary];
111 NSMutableDictionary *unshieldedHitSounds = [NSMutableDictionary dictionary];
112 NSMutableDictionary *weaponLaunchedSounds = [NSMutableDictionary dictionary];
113 NSEnumerator *eqTypeEnum = nil;
114 OOEquipmentType *eqType = nil;
115
116 // special case: turrets aren't defined with a "EQ_WEAPON" prefix, and plasma shots don't have a matching equipment item,
117 // so add a unique entry here. this could be overridden if an OXP creates an equipment item with this key.
118 // plasma shots don't make a sound when fired, so we only need to provide for the hit player sound keys.
119 [shieldHitSounds setObject:@"[player-hit-by-weapon]" forKey:@"EQ_WEAPON_PLASMA_SHOT"];
120 [unshieldedHitSounds setObject:@"[player-direct-hit]" forKey:@"EQ_WEAPON_PLASMA_SHOT"];
121 // grab a local copy of the sound identifiers for weapons to make the process of looking up a sound ref as fast as possible
122 // but we must ensure that no nil values are used for setObject
123 #define OO_ASSIGN_SOUNDSTR_TO_SOUNDS(soundStr, sounds) do { \
124 fxString = [eqType soundStr]; \
125 if (!fxString) fxString = @""; \
126 [sounds setObject:fxString forKey:[eqType identifier]]; \
127 } while(0)
128
129 for (eqTypeEnum = [eqTypes objectEnumerator]; (eqType = [eqTypeEnum nextObject]); )
130 {
131 NSString *fxString = nil;
132 if ([[eqType identifier] hasPrefix:@"EQ_WEAPON"])
133 {
134 OO_ASSIGN_SOUNDSTR_TO_SOUNDS(fxShotMissName, shotMissSounds);
135 OO_ASSIGN_SOUNDSTR_TO_SOUNDS(fxShotHitName, shotHitSounds);
136 OO_ASSIGN_SOUNDSTR_TO_SOUNDS(fxShieldHitName, shieldHitSounds);
137 OO_ASSIGN_SOUNDSTR_TO_SOUNDS(fxUnshieldedHitName, unshieldedHitSounds);
138 }
139 if ([eqType isMissileOrMine])
140 {
141 OO_ASSIGN_SOUNDSTR_TO_SOUNDS(fxWeaponLaunchedName, weaponLaunchedSounds);
142 OO_ASSIGN_SOUNDSTR_TO_SOUNDS(fxShieldHitName, shieldHitSounds);
143 OO_ASSIGN_SOUNDSTR_TO_SOUNDS(fxUnshieldedHitName, unshieldedHitSounds);
144 }
145 }
146
152
153 weaponShotMiss = [[NSDictionary alloc] initWithDictionary:shotMissSounds];
154 weaponShotHit = [[NSDictionary alloc] initWithDictionary:shotHitSounds];
155 weaponShieldHit = [[NSDictionary alloc] initWithDictionary:shieldHitSounds];
156 weaponUnshieldedHit = [[NSDictionary alloc] initWithDictionary:unshieldedHitSounds];
157 weaponLaunched = [[NSDictionary alloc] initWithDictionary:weaponLaunchedSounds];
158}
#define OO_ASSIGN_SOUNDSTR_TO_SOUNDS(soundStr, sounds)
NSArray * allEquipmentTypes()

References OOEquipmentType::allEquipmentTypes, DESTROY, nil, OO_ASSIGN_SOUNDSTR_TO_SOUNDS, setUpWeaponSounds, weaponLaunched, weaponShieldHit, weaponShotHit, weaponShotMiss, and weaponUnshieldedHit.

Referenced by setUpWeaponSounds.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ startAfterburnerSound

- (void) startAfterburnerSound

Extends class PlayerEntity.

Definition at line 475 of file PlayerEntitySound.m.

476{
477 if (!afterburnerSoundLooping)
478 {
479 afterburnerSoundLooping = YES;
480 [self updateAfterburnerSound];
481 }
482}

References startAfterburnerSound, and PlayerEntity::updateAfterburnerSound.

Referenced by startAfterburnerSound.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stopAfterburnerSound

- (void) stopAfterburnerSound

Extends class PlayerEntity.

Definition at line 485 of file PlayerEntitySound.m.

486{
487 // Do nothing, stop is detected in updateAfterburnerSound
488}

References stopAfterburnerSound.

Referenced by stopAfterburnerSound.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateAfterburnerSound

- (void) updateAfterburnerSound
implementation

Extends class PlayerEntity.

Definition at line 454 of file PlayerEntitySound.m.

455{
456 static uint8_t which = 0;
457
458 if (!afterburner_engaged) // end the loop cycle
459 {
460 afterburnerSoundLooping = NO;
461 }
462
463 if (afterburnerSoundLooping)
464 {
465 [sAfterburnerSources[which] play];
466 which = !which;
467
468 [self performSelector:@selector(updateAfterburnerSound)
469 withObject:NULL
470 afterDelay:1.25]; // and swap sounds in 1.25s time
471 }
472}

References OOSoundSource::play, and updateAfterburnerSound.

Referenced by updateAfterburnerSound.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateFuelScoopSoundWithInterval:

- (void) updateFuelScoopSoundWithInterval: (OOTimeDelta) delta_t

Extends class PlayerEntity.

Definition at line 429 of file PlayerEntitySound.m.

429 :(OOTimeDelta)delta_t
430{
431 static double scoopSoundPlayTime = 0.0;
432 scoopSoundPlayTime -= delta_t;
433 if (scoopSoundPlayTime < 0.0)
434 {
435 if(![sInterfaceBeepSource isPlaying])
436 {
437 /* TODO: this should use the scoop position, not the standard
438 * interface beep position */
439 [self playInterfaceBeep:@"[scoop]"];
440 scoopSoundPlayTime = 0.5;
441 }
442 else scoopSoundPlayTime = 0.0;
443 }
444 if (![self scoopOverride])
445 {
446 scoopSoundPlayTime = 0.0;
447 }
448}
double OOTimeDelta
Definition OOTypes.h:224

References PlayerEntity::playInterfaceBeep:, and sInterfaceBeepSource.

Here is the call graph for this function:

The documentation for this category was generated from the following files: