Class VehicleSounds
java.lang.Object
zombie.vehicleSound.VehicleSounds
- All Implemented Interfaces:
fmod.fmod.IFMODParameterUpdater, VehicleSoundOwner
public final class VehicleSounds
extends Object
implements VehicleSoundOwner, fmod.fmod.IFMODParameterUpdater
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatintintdoublefloatfloatfloatgetOwner()doubleintfloatgetX()intgetXi()floatgetY()intgetYi()floatgetZ()intgetZi()booleanhasAlarm()booleanhasHorn()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisCombinedWithEngineSound(String sound) booleanbooleanbooleanbooleanbooleanbooleanisListenerInRange(float range) booleanbooleanvoidremove()voidsetOwner(VehicleSoundOwner owner) voidsetSirenStartTime(double worldAgeHours) voidstartEvent(long eventInstance, GameSoundClip clip, boolean remote, BitSet parameterSet) voidstopEvent(long eventInstance, GameSoundClip clip, boolean remote, BitSet parameterSet) voidupdate()voidupdateEvent(long eventInstance, GameSoundClip clip) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface VehicleSoundOwner
getLightbarSirenMode, hasSiren, setLightbarSirenMode, sirenShutoffTimeExpired
-
Field Details
-
SOUND_VOLUME
public static float SOUND_VOLUME
-
-
Constructor Details
-
VehicleSounds
public VehicleSounds()
-
-
Method Details
-
setOwner
-
getOwner
-
getX
public float getX()- Specified by:
getXin interfaceVehicleSoundOwner
-
getY
public float getY()- Specified by:
getYin interfaceVehicleSoundOwner
-
getZ
public float getZ()- Specified by:
getZin interfaceVehicleSoundOwner
-
getXi
public int getXi()- Specified by:
getXiin interfaceVehicleSoundOwner
-
getYi
public int getYi()- Specified by:
getYiin interfaceVehicleSoundOwner
-
getZi
public int getZi()- Specified by:
getZiin interfaceVehicleSoundOwner
-
isListenerInRange
public boolean isListenerInRange(float range) - Specified by:
isListenerInRangein interfaceVehicleSoundOwner
-
getScriptName
- Specified by:
getScriptNamein interfaceVehicleSoundOwner
-
getScript
- Specified by:
getScriptin interfaceVehicleSoundOwner
-
getEngineCondition
public int getEngineCondition()- Specified by:
getEngineConditionin interfaceVehicleSoundOwner
-
getEngineQuality
public int getEngineQuality()- Specified by:
getEngineQualityin interfaceVehicleSoundOwner
-
getEngineState
- Specified by:
getEngineStatein interfaceVehicleSoundOwner
-
isEngineRunning
public boolean isEngineRunning()- Specified by:
isEngineRunningin interfaceVehicleSoundOwner
-
isEngineSounding
public boolean isEngineSounding()- Specified by:
isEngineSoundingin interfaceVehicleSoundOwner
-
getEngineSpeed
public double getEngineSpeed()- Specified by:
getEngineSpeedin interfaceVehicleSoundOwner
-
getTransmissionNumber
public int getTransmissionNumber()- Specified by:
getTransmissionNumberin interfaceVehicleSoundOwner
-
getCurrentSpeedKmHour
public float getCurrentSpeedKmHour()- Specified by:
getCurrentSpeedKmHourin interfaceVehicleSoundOwner
-
getMaxSpeed
public float getMaxSpeed()- Specified by:
getMaxSpeedin interfaceVehicleSoundOwner
-
hasAlarm
public boolean hasAlarm()- Specified by:
hasAlarmin interfaceVehicleSoundOwner
-
isAlarmActive
public boolean isAlarmActive()- Specified by:
isAlarmActivein interfaceVehicleSoundOwner
-
isAlarmSoundOn
public boolean isAlarmSoundOn()- Specified by:
isAlarmSoundOnin interfaceVehicleSoundOwner
-
isAlarmSounding
public boolean isAlarmSounding()- Specified by:
isAlarmSoundingin interfaceVehicleSoundOwner
-
isBrakePedalPressed
public boolean isBrakePedalPressed()- Specified by:
isBrakePedalPressedin interfaceVehicleSoundOwner
-
isGasPedalPressed
public boolean isGasPedalPressed()- Specified by:
isGasPedalPressedin interfaceVehicleSoundOwner
-
getRoadMaterial
- Specified by:
getRoadMaterialin interfaceVehicleSoundOwner
-
getChosenAlarmSound
- Specified by:
getChosenAlarmSoundin interfaceVehicleSoundOwner
-
isBackupBeeperSounding
public boolean isBackupBeeperSounding()- Specified by:
isBackupBeeperSoundingin interfaceVehicleSoundOwner
-
isDoorAlarmSounding
public boolean isDoorAlarmSounding()- Specified by:
isDoorAlarmSoundingin interfaceVehicleSoundOwner
-
hasHorn
public boolean hasHorn()- Specified by:
hasHornin interfaceVehicleSoundOwner
-
isHornSounding
public boolean isHornSounding()- Specified by:
isHornSoundingin interfaceVehicleSoundOwner
-
getVehicleSoundEmitter
- Specified by:
getVehicleSoundEmitterin interfaceVehicleSoundOwner
-
isAnyListenerInside
public boolean isAnyListenerInside()- Specified by:
isAnyListenerInsidein interfaceVehicleSoundOwner
-
isSirenActive
public boolean isSirenActive()- Specified by:
isSirenActivein interfaceVehicleSoundOwner
-
isSirenSounding
public boolean isSirenSounding()- Specified by:
isSirenSoundingin interfaceVehicleSoundOwner
-
getSirenStartTime
public double getSirenStartTime()- Specified by:
getSirenStartTimein interfaceVehicleSoundOwner
-
setSirenStartTime
public void setSirenStartTime(double worldAgeHours) - Specified by:
setSirenStartTimein interfaceVehicleSoundOwner
-
hasLightbar
public boolean hasLightbar()- Specified by:
hasLightbarin interfaceVehicleSoundOwner
-
getLightbarSirenModeObject
- Specified by:
getLightbarSirenModeObjectin interfaceVehicleSoundOwner
-
getMaxWheelSteering
public float getMaxWheelSteering()- Specified by:
getMaxWheelSteeringin interfaceVehicleSoundOwner
-
getMinWheelSkid
public float getMinWheelSkid()- Specified by:
getMinWheelSkidin interfaceVehicleSoundOwner
-
isAnyTireMissing
public boolean isAnyTireMissing()- Specified by:
isAnyTireMissingin interfaceVehicleSoundOwner
-
update
public void update() -
remove
public void remove() -
getFMODParameters
- Specified by:
getFMODParametersin interfacefmod.fmod.IFMODParameterUpdater
-
startEvent
- Specified by:
startEventin interfacefmod.fmod.IFMODParameterUpdater
-
updateEvent
- Specified by:
updateEventin interfacefmod.fmod.IFMODParameterUpdater
-
stopEvent
- Specified by:
stopEventin interfacefmod.fmod.IFMODParameterUpdater
-
getEngineSound
-
getEngineStartSound
-
getEngineTurnOffSound
-
getHandBrakeSound
-
getIgnitionFailSound
-
getIgnitionFailNoPowerSound
-
isCombinedWithEngineSound
-