Class DeviceData
java.lang.Object
zombie.radio.devices.DeviceData
- All Implemented Interfaces:
IFMODParameterUpdater,Cloneable
Turbo Stores shared data for devices (used in iso and item)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddHeadphones(InventoryItem headphones) voidaddMediaItem(InventoryItem media) booleanbooleancanPlayerRemoteInteract(IsoGameCharacter character) voidvoidvoiddoReceiveMPSignal(float distance) voiddoReceiveSignal(int distance) voidfloatgetBattery(ItemContainer inventory) intgetClone()intfloatintbooleangetHeadphones(ItemContainer inventory) intbooleanbooleanbooleanbooleanbooleanbooleanintintshortbytebooleanintintfloatgetPower()intfloatbooleanhasMedia()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidload(ByteBuffer input, int WorldVersion, boolean net) voidvoidplaySoundLocal(String soundname, boolean useDeviceVolume) voidplaySoundSend(String soundname, boolean useDeviceVolume) voidreceiveDeviceDataStatePacket(ByteBuffer bb, UdpConnection ignoreConnection) removeMediaItem(ItemContainer inventory) voidsave(ByteBuffer output, boolean net) voidsetBaseVolumeRange(float f) voidsetChannel(int c) voidsetChannel(int chan, boolean setislistening) voidsetChannelRaw(int chan) voidsetDeviceName(String name) voidvoidsetDeviceVolume(float f) voidsetDeviceVolumeRaw(float f) voidsetHasBattery(boolean b) voidsetHeadphoneType(int i) voidvoidsetIsBatteryPowered(boolean b) voidsetIsHighTier(boolean b) voidsetIsPortable(boolean b) voidsetIsTelevision(boolean b) voidsetIsTurnedOn(boolean b) voidsetIsTwoWay(boolean b) voidsetMaxChannelRange(int i) voidsetMediaIndex(short _mediaIndex) voidsetMediaType(byte _mediaType) voidsetMicIsMuted(boolean b) voidsetMicRange(int i) voidsetMinChannelRange(int i) voidsetNoTransmit(boolean _noTransmit) voidvoidsetPower(float p) voidvoidsetTransmitRange(int range) voidsetTurnedOnRaw(boolean b) voidsetUseDelta(float f) voidstartEvent(long long0, GameSoundClip gameSoundClip, BitSet bitSet) voidvoidstopEvent(long long0, GameSoundClip gameSoundClip, BitSet bitSet) voidstopOrTriggerSoundByName(String string) voidvoidvoidvoidTriggerPlayerListening(boolean listening) voidupdate(boolean isIso, boolean playerInRange) voidupdateEvent(long var1, GameSoundClip var3) voidvoid
-
Constructor Details
-
DeviceData
public DeviceData() -
DeviceData
-
-
Method Details
-
generatePresets
public void generatePresets() -
getClone
-
getParent
-
setParent
-
getDevicePresets
-
setDevicePresets
-
cloneDevicePresets
- Throws:
CloneNotSupportedException
-
getMinChannelRange
public int getMinChannelRange() -
setMinChannelRange
public void setMinChannelRange(int i) -
getMaxChannelRange
public int getMaxChannelRange() -
setMaxChannelRange
public void setMaxChannelRange(int i) -
getIsHighTier
public boolean getIsHighTier() -
setIsHighTier
public void setIsHighTier(boolean b) -
getIsBatteryPowered
public boolean getIsBatteryPowered() -
setIsBatteryPowered
public void setIsBatteryPowered(boolean b) -
getHasBattery
public boolean getHasBattery() -
setHasBattery
public void setHasBattery(boolean b) -
addBattery
-
getBattery
-
transmitBattryChange
public void transmitBattryChange() -
addHeadphones
-
getHeadphones
-
getMicRange
public int getMicRange() -
setMicRange
public void setMicRange(int i) -
getMicIsMuted
public boolean getMicIsMuted() -
setMicIsMuted
public void setMicIsMuted(boolean b) -
getHeadphoneType
public int getHeadphoneType() -
setHeadphoneType
public void setHeadphoneType(int i) -
getBaseVolumeRange
public float getBaseVolumeRange() -
setBaseVolumeRange
public void setBaseVolumeRange(float f) -
getDeviceVolume
public float getDeviceVolume() -
setDeviceVolume
public void setDeviceVolume(float f) -
setDeviceVolumeRaw
public void setDeviceVolumeRaw(float f) -
getIsTelevision
public boolean getIsTelevision() -
isTelevision
public boolean isTelevision() -
setIsTelevision
public void setIsTelevision(boolean b) -
canPlayerRemoteInteract
-
getDeviceName
-
setDeviceName
-
getIsTwoWay
public boolean getIsTwoWay() -
setIsTwoWay
public void setIsTwoWay(boolean b) -
getTransmitRange
public int getTransmitRange() -
setTransmitRange
public void setTransmitRange(int range) -
getIsPortable
public boolean getIsPortable() -
setIsPortable
public void setIsPortable(boolean b) -
getIsTurnedOn
public boolean getIsTurnedOn() -
setIsTurnedOn
public void setIsTurnedOn(boolean b) -
setTurnedOnRaw
public void setTurnedOnRaw(boolean b) -
canBePoweredHere
public boolean canBePoweredHere() -
setRandomChannel
public void setRandomChannel() -
getChannel
public int getChannel() -
setChannel
public void setChannel(int c) -
setChannel
public void setChannel(int chan, boolean setislistening) -
setChannelRaw
public void setChannelRaw(int chan) -
getUseDelta
public float getUseDelta() -
setUseDelta
public void setUseDelta(float f) -
getPower
public float getPower() -
setPower
public void setPower(float p) -
setInitialPower
public void setInitialPower() -
TriggerPlayerListening
public void TriggerPlayerListening(boolean listening) -
playSoundSend
-
playSoundLocal
-
playSound
-
stopOrTriggerSoundByName
-
cleanSoundsAndEmitter
public void cleanSoundsAndEmitter() -
getIsoObject
-
getEmitter
-
update
public void update(boolean isIso, boolean playerInRange) -
updateSimple
public void updateSimple() -
getDeviceVolumeRange
public int getDeviceVolumeRange() -
getDeviceSoundVolumeRange
public int getDeviceSoundVolumeRange() -
doReceiveSignal
public void doReceiveSignal(int distance) -
doReceiveMPSignal
public void doReceiveMPSignal(float distance) -
isReceivingSignal
public boolean isReceivingSignal() -
getLastRecordedDistance
public int getLastRecordedDistance() -
isIsoDevice
public boolean isIsoDevice() -
isInventoryDevice
public boolean isInventoryDevice() -
isVehicleDevice
public boolean isVehicleDevice() -
transmitPresets
public void transmitPresets() -
receiveDeviceDataStatePacket
public void receiveDeviceDataStatePacket(ByteBuffer bb, UdpConnection ignoreConnection) throws IOException - Throws:
IOException
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
hasMedia
public boolean hasMedia() -
getMediaIndex
public short getMediaIndex() -
setMediaIndex
public void setMediaIndex(short _mediaIndex) -
getMediaType
public byte getMediaType() -
setMediaType
public void setMediaType(byte _mediaType) -
addMediaItem
-
removeMediaItem
-
isPlayingMedia
public boolean isPlayingMedia() -
StartPlayMedia
public void StartPlayMedia() -
StopPlayMedia
public void StopPlayMedia() -
updateMediaPlaying
public void updateMediaPlaying() -
getMediaData
-
isNoTransmit
public boolean isNoTransmit() -
setNoTransmit
public void setNoTransmit(boolean _noTransmit) -
isEmergencyBroadcast
public boolean isEmergencyBroadcast() -
getFMODParameters
- Specified by:
getFMODParametersin interfaceIFMODParameterUpdater
-
startEvent
- Specified by:
startEventin interfaceIFMODParameterUpdater
-
updateEvent
- Specified by:
updateEventin interfaceIFMODParameterUpdater
-
stopEvent
- Specified by:
stopEventin interfaceIFMODParameterUpdater
-