Oolite
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;
42- (void)playWeaponsOnline;
43- (void)playWeaponsOffline;
47- (void)playAutopilotOn;
48- (void)playAutopilotOff;
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/* Hyperspace sounds; only one at a time. These get their own pool since
90 people might want something longer than beeps and boops (e.g. the existing
91 hyperspace countdown one). Hyperspace-related alert sounds are with the
92 normal interface sounds.
93*/
97
98// ECM; only one at a time
99- (void)playHitByECMSound;
100- (void)playFiredECMSound;
101
103- (void)playDockWithStation;
104- (void)playExitWitchspace;
105
106// Warning sounds
107- (void)playHostileWarning;
109- (void)playIncomingMissile:(Vector)missileVector;
110- (void)playEnergyLow;
111- (void)playDockingDenied;
117- (void)playFuelLeak;
118
119// Damage sounds
120- (void)playShieldHit:(Vector)attackVector weaponIdentifier:(NSString*)weaponIdentifier;
121- (void)playDirectHit:(Vector)attackVector weaponIdentifier:(NSString*)weaponIdentifier;
122- (void)playScrapeDamage:(Vector)attackVector;
123
124// Weapon sounds
125- (void)playLaserHit:(BOOL)hit offset:(Vector)weaponOffset weaponIdentifier:(NSString*)weaponIdentifier;
126- (void)playWeaponOverheated:(Vector)weaponOffset;
127- (void)playMissileLaunched:(Vector)weaponOffset weaponIdentifier:(NSString*)weaponIdentifier;
128- (void)playMineLaunched:(Vector)weaponOffset weaponIdentifier:(NSString*)weaponIdentifier;
129
130// Miscellaneous sounds
134- (void)playGameOver;
135
136- (void)playLegacyScriptSound:(NSString*)key;
137
138@end
double OOTimeDelta
Definition OOTypes.h:193