Class DeviceData
java.lang.Object
zombie.radio.devices.DeviceData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
protected int
protected boolean
protected Color
protected String
protected String
protected float
protected boolean
protected BaseSoundEmitter
protected GameTime
protected boolean
protected int
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected long
protected int
protected float
protected int
protected int
protected short
protected String
protected int
protected byte
protected boolean
protected int
protected int
protected boolean
protected ParameterDeviceVolume
protected FMODParameterList
protected WaveSignalDevice
protected MediaData
protected float
protected DevicePresets
protected long
protected float
protected float
protected float
protected int
protected boolean
protected float
protected float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addHeadphones
(InventoryItem headphones) void
addMediaItem
(InventoryItem media) boolean
boolean
canPlayerRemoteInteract
(IsoGameCharacter isoGameCharacter) void
protected Object
clone()
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) protected void
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) protected void
void
updateEvent
(long var1, GameSoundClip var3) void
void
-
Field Details
-
deviceName
-
twoWay
protected boolean twoWay -
transmitRange
protected int transmitRange -
micRange
protected int micRange -
micIsMuted
protected boolean micIsMuted -
baseVolumeRange
protected float baseVolumeRange -
deviceVolume
protected float deviceVolume -
isPortable
protected boolean isPortable -
isTelevision
protected boolean isTelevision -
isHighTier
protected boolean isHighTier -
isTurnedOn
protected boolean isTurnedOn -
channel
protected int channel -
minChannelRange
protected int minChannelRange -
maxChannelRange
protected int maxChannelRange -
presets
-
isBatteryPowered
protected boolean isBatteryPowered -
hasBattery
protected boolean hasBattery -
powerDelta
protected float powerDelta -
useDelta
protected float useDelta -
lastRecordedDistance
protected int lastRecordedDistance -
headphoneType
protected int headphoneType -
parent
-
gameTime
-
channelChangedRecently
protected boolean channelChangedRecently -
emitter
-
parameterList
-
parameterDeviceVolume
-
mediaIndex
protected short mediaIndex -
mediaType
protected byte mediaType -
mediaItem
-
playingMedia
-
isPlayingMedia
protected boolean isPlayingMedia -
mediaLineIndex
protected int mediaLineIndex -
lineCounter
protected float lineCounter -
currentMediaLine
-
currentMediaColor
-
isStoppingMedia
protected boolean isStoppingMedia -
stopMediaCounter
protected float stopMediaCounter -
noTransmit
protected boolean noTransmit -
radioLoopSound
protected long radioLoopSound -
doTriggerWorldSound
protected boolean doTriggerWorldSound -
lastMinuteStamp
protected long lastMinuteStamp -
listenCnt
protected int listenCnt -
voipCounter
protected float voipCounter -
signalCounter
protected float signalCounter -
soundCounter
protected float soundCounter
-
-
Constructor Details
-
DeviceData
public DeviceData() -
DeviceData
-
-
Method Details
-
generatePresets
public void generatePresets() -
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
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
-
setEmitterAndPos
protected void setEmitterAndPos() -
updateEmitter
protected void updateEmitter() -
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
-