Line data Source code
1 0 : /* 2 : 3 : PlayerEntitySound.h 4 : 5 : Oolite 6 : Copyright (C) 2004-2013 Giles C Williams and contributors 7 : 8 : This program is free software; you can redistribute it and/or 9 : modify it under the terms of the GNU General Public License 10 : as published by the Free Software Foundation; either version 2 11 : of the License, or (at your option) any later version. 12 : 13 : This program is distributed in the hope that it will be useful, 14 : but WITHOUT ANY WARRANTY; without even the implied warranty of 15 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 : GNU General Public License for more details. 17 : 18 : You should have received a copy of the GNU General Public License 19 : along with this program; if not, write to the Free Software 20 : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 21 : MA 02110-1301, USA. 22 : 23 : */ 24 : 25 : #import "PlayerEntity.h" 26 : 27 : @interface PlayerEntity (Sound) 28 : 29 0 : - (void) setUpSound; 30 0 : - (void) setUpWeaponSounds; 31 0 : - (void) destroySound; 32 : 33 : // Interface sounds; only one at a time 34 0 : - (BOOL) isBeeping; 35 0 : - (void) playIdentOn; 36 0 : - (void) playIdentOff; 37 0 : - (void) playIdentLockedOn; 38 0 : - (void) playMissileArmed; 39 0 : - (void) playMineArmed; 40 0 : - (void) playMissileSafe; 41 0 : - (void) playMissileLockedOn; 42 0 : - (void) playWeaponsOnline; 43 0 : - (void) playWeaponsOffline; 44 0 : - (void) playNextEquipmentSelected; 45 0 : - (void) playNextMissileSelected; 46 0 : - (void) playCargoJettisioned; 47 0 : - (void) playAutopilotOn; 48 0 : - (void) playAutopilotOff; 49 0 : - (void) playAutopilotOutOfRange; 50 0 : - (void) playAutopilotCannotDockWithTarget; 51 0 : - (void) playSaveOverwriteYes; 52 0 : - (void) playSaveOverwriteNo; 53 0 : - (void) playHoldFull; 54 0 : - (void) playJumpMassLocked; 55 0 : - (void) playTargetLost; 56 0 : - (void) playNoTargetInMemory; 57 0 : - (void) playTargetSwitched; 58 0 : - (void) playCloakingDeviceOn; 59 0 : - (void) playCloakingDeviceOff; 60 0 : - (void) playCloakingDeviceInsufficientEnergy; 61 0 : - (void) playMenuNavigationUp; 62 0 : - (void) playMenuNavigationDown; 63 0 : - (void) playMenuNavigationNot; 64 0 : - (void) playMenuPagePrevious; 65 0 : - (void) playMenuPageNext; 66 0 : - (void) playDismissedReportScreen; 67 0 : - (void) playDismissedMissionScreen; 68 0 : - (void) playChangedOption; 69 : 70 0 : - (void) updateFuelScoopSoundWithInterval:(OOTimeDelta)delta_t; 71 : 72 0 : - (void) startAfterburnerSound; 73 0 : - (void) stopAfterburnerSound; 74 : 75 : // Buy/sell get their own source. 76 0 : - (void) playBuyCommodity; 77 0 : - (void) playBuyShip; 78 0 : - (void) playSellCommodity; 79 0 : - (void) playCantBuyCommodity; 80 0 : - (void) playCantSellCommodity; 81 0 : - (void) playCantBuyShip; 82 : 83 : // Hyperspace alert sounds; logically hyperspace sounds, but played on the interface sound source. 84 0 : - (void) playHyperspaceNoTarget; 85 0 : - (void) playHyperspaceNoFuel; 86 0 : - (void) playHyperspaceBlocked; 87 0 : - (void) playHyperspaceDistanceTooGreat; 88 : 89 : 90 : /* Hyperspace sounds; only one at a time. These get their own pool since 91 : people might want something longer than beeps and boops (e.g. the existing 92 : hyperspace countdown one). Hyperspace-related alert sounds are with the 93 : normal interface sounds. 94 : */ 95 0 : - (void) playStandardHyperspace; 96 0 : - (void) playGalacticHyperspace; 97 0 : - (void) playHyperspaceAborted; 98 : 99 : // ECM; only one at a time 100 0 : - (void) playHitByECMSound; 101 0 : - (void) playFiredECMSound; 102 : 103 0 : - (void) playLaunchFromStation; 104 0 : - (void) playDockWithStation; 105 0 : - (void) playExitWitchspace; 106 : 107 : // Warning sounds 108 0 : - (void) playHostileWarning; 109 0 : - (void) playAlertConditionRed; 110 0 : - (void) playIncomingMissile:(Vector)missileVector; 111 0 : - (void) playEnergyLow; 112 0 : - (void) playDockingDenied; 113 0 : - (void) playWitchjumpFailure; 114 0 : - (void) playWitchjumpMisjump; 115 0 : - (void) playWitchjumpBlocked; 116 0 : - (void) playWitchjumpDistanceTooGreat; 117 0 : - (void) playWitchjumpInsufficientFuel; 118 0 : - (void) playFuelLeak; 119 : 120 : // Damage sounds 121 0 : - (void) playShieldHit:(Vector)attackVector weaponIdentifier:(NSString *)weaponIdentifier; 122 0 : - (void) playDirectHit:(Vector)attackVector weaponIdentifier:(NSString *)weaponIdentifier; 123 0 : - (void) playScrapeDamage:(Vector)attackVector; 124 : 125 : // Weapon sounds 126 0 : - (void) playLaserHit:(BOOL)hit offset:(Vector)weaponOffset weaponIdentifier:(NSString *)weaponIdentifier; 127 0 : - (void) playWeaponOverheated:(Vector)weaponOffset; 128 0 : - (void) playMissileLaunched:(Vector)weaponOffset weaponIdentifier:(NSString *)weaponIdentifier; 129 0 : - (void) playMineLaunched:(Vector)weaponOffset weaponIdentifier:(NSString *)weaponIdentifier; 130 : 131 : // Miscellaneous sounds 132 0 : - (void) playEscapePodScooped; 133 0 : - (void) playAegisCloseToPlanet; 134 0 : - (void) playAegisCloseToStation; 135 0 : - (void) playGameOver; 136 : 137 0 : - (void) playLegacyScriptSound:(NSString *)key; 138 : 139 : @end