Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
PlayerEntitySound.h
Go to the documentation of this file.
1/*
2
3PlayerEntitySound.h
4
5Oolite
6Copyright (C) 2004-2013 Giles C Williams and contributors
7
8This program is free software; you can redistribute it and/or
9modify it under the terms of the GNU General Public License
10as published by the Free Software Foundation; either version 2
11of the License, or (at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program; if not, write to the Free Software
20Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21MA 02110-1301, USA.
22
23*/
24
25#import "PlayerEntity.h"
26
27@interface PlayerEntity (Sound)
28
29- (void) setUpSound;
30- (void) setUpWeaponSounds;
31- (void) destroySound;
32
33// Interface sounds; only one at a time
34- (BOOL) isBeeping;
35- (void) playIdentOn;
36- (void) playIdentOff;
37- (void) playIdentLockedOn;
38- (void) playMissileArmed;
39- (void) playMineArmed;
40- (void) playMissileSafe;
41- (void) playMissileLockedOn;
42- (void) playWeaponsOnline;
43- (void) playWeaponsOffline;
47- (void) playAutopilotOn;
48- (void) playAutopilotOff;
52- (void) playSaveOverwriteNo;
53- (void) playHoldFull;
54- (void) playJumpMassLocked;
55- (void) playTargetLost;
57- (void) playTargetSwitched;
65- (void) playMenuPageNext;
68- (void) playChangedOption;
69
70- (void) updateFuelScoopSoundWithInterval:(OOTimeDelta)delta_t;
71
74
75// Buy/sell get their own source.
76- (void) playBuyCommodity;
77- (void) playBuyShip;
78- (void) playSellCommodity;
81- (void) playCantBuyShip;
82
83// Hyperspace alert sounds; logically hyperspace sounds, but played on the interface sound source.
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*/
98
99// ECM; only one at a time
100- (void) playHitByECMSound;
101- (void) playFiredECMSound;
102
103- (void) playLaunchFromStation;
104- (void) playDockWithStation;
105- (void) playExitWitchspace;
106
107// Warning sounds
108- (void) playHostileWarning;
109- (void) playAlertConditionRed;
110- (void) playIncomingMissile:(Vector)missileVector;
111- (void) playEnergyLow;
112- (void) playDockingDenied;
113- (void) playWitchjumpFailure;
114- (void) playWitchjumpMisjump;
115- (void) playWitchjumpBlocked;
118- (void) playFuelLeak;
119
120// Damage sounds
121- (void) playShieldHit:(Vector)attackVector weaponIdentifier:(NSString *)weaponIdentifier;
122- (void) playDirectHit:(Vector)attackVector weaponIdentifier:(NSString *)weaponIdentifier;
123- (void) playScrapeDamage:(Vector)attackVector;
124
125// Weapon sounds
126- (void) playLaserHit:(BOOL)hit offset:(Vector)weaponOffset weaponIdentifier:(NSString *)weaponIdentifier;
127- (void) playWeaponOverheated:(Vector)weaponOffset;
128- (void) playMissileLaunched:(Vector)weaponOffset weaponIdentifier:(NSString *)weaponIdentifier;
129- (void) playMineLaunched:(Vector)weaponOffset weaponIdentifier:(NSString *)weaponIdentifier;
130
131// Miscellaneous sounds
132- (void) playEscapePodScooped;
135- (void) playGameOver;
136
137- (void) playLegacyScriptSound:(NSString *)key;
138
139@end
double OOTimeDelta
Definition OOTypes.h:224