Class DeviceData
java.lang.Object
zombie.radio.devices.DeviceData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addHeadphones
(InventoryItem headphones) void
addMediaItem
(InventoryItem media) boolean
boolean
canPlayerRemoteInteract
(IsoGameCharacter character) void
void
void
doReceiveMPSignal
(float distance) void
doReceiveSignal
(int distance) void
float
getBattery
(ItemContainer inventory) int
getClone()
int
float
int
boolean
getHeadphones
(ItemContainer inventory) int
boolean
boolean
boolean
boolean
boolean
boolean
int
int
short
byte
boolean
int
int
float
getPower()
int
float
boolean
hasMedia()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
load
(ByteBuffer input, int WorldVersion, boolean net) void
void
playSoundLocal
(String soundname, boolean useDeviceVolume) void
playSoundSend
(String soundname, boolean useDeviceVolume) void
receiveDeviceDataStatePacket
(ByteBuffer bb, UdpConnection ignoreConnection) removeMediaItem
(ItemContainer inventory) void
save
(ByteBuffer output, boolean net) void
setBaseVolumeRange
(float f) void
setChannel
(int c) void
setChannel
(int chan, boolean setislistening) void
setChannelRaw
(int chan) void
setDeviceName
(String name) void
void
setDeviceVolume
(float f) void
setDeviceVolumeRaw
(float f) void
setHasBattery
(boolean b) void
setHeadphoneType
(int i) void
void
setIsBatteryPowered
(boolean b) void
setIsHighTier
(boolean b) void
setIsPortable
(boolean b) void
setIsTelevision
(boolean b) void
setIsTurnedOn
(boolean b) void
setIsTwoWay
(boolean b) void
setMaxChannelRange
(int i) void
setMediaIndex
(short _mediaIndex) void
setMediaType
(byte _mediaType) void
setMicIsMuted
(boolean b) void
setMicRange
(int i) void
setMinChannelRange
(int i) void
setNoTransmit
(boolean _noTransmit) void
void
setPower
(float p) void
void
setTransmitRange
(int range) void
setTurnedOnRaw
(boolean b) void
setUseDelta
(float f) void
startEvent
(long long0, GameSoundClip gameSoundClip, BitSet bitSet) void
void
stopEvent
(long long0, GameSoundClip gameSoundClip, BitSet bitSet) void
stopOrTriggerSoundByName
(String string) void
void
void
void
TriggerPlayerListening
(boolean listening) void
update
(boolean isIso, boolean playerInRange) void
updateEvent
(long var1, GameSoundClip var3) void
void
-
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:
getFMODParameters
in interfacefmod.fmod.IFMODParameterUpdater
-
startEvent
- Specified by:
startEvent
in interfacefmod.fmod.IFMODParameterUpdater
-
updateEvent
- Specified by:
updateEvent
in interfacefmod.fmod.IFMODParameterUpdater
-
stopEvent
- Specified by:
stopEvent
in interfacefmod.fmod.IFMODParameterUpdater
-