Package zombie.radio.devices
Class DeviceData
java.lang.Object
zombie.radio.devices.DeviceData
- All Implemented Interfaces:
Cloneable
-
Field Summary
Modifier 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 WaveSignalDevice
protected MediaData
protected float
protected DevicePresets
protected long
protected float
protected float
protected ArrayList
protected float
protected int
protected boolean
protected float
protected float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBattery
(DrainableComboItem drainableComboItem) void
addHeadphones
(InventoryItem inventoryItem) void
addMediaItem
(InventoryItem inventoryItem) boolean
void
protected Object
clone()
void
cloneDevicePresets
(DevicePresets devicePresets) void
doReceiveMPSignal
(float float1) void
doReceiveSignal
(int int1) void
float
getBattery
(ItemContainer itemContainer) int
getClone()
int
float
int
boolean
getHeadphones
(ItemContainer itemContainer) 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
void
load
(ByteBuffer byteBuffer, int int1, boolean boolean1) void
void
playSoundLocal
(String string, boolean boolean1) void
playSoundSend
(String string, boolean boolean1) void
receiveDeviceDataStatePacket
(ByteBuffer byteBuffer, UdpConnection udpConnection) removeMediaItem
(ItemContainer itemContainer) void
save
(ByteBuffer byteBuffer, boolean boolean1) void
setBaseVolumeRange
(float float1) void
setChannel
(int int1) void
setChannel
(int int1, boolean boolean1) void
setChannelRaw
(int int1) void
setDeviceName
(String string) void
setDevicePresets
(DevicePresets devicePresets) void
setDeviceVolume
(float float1) void
setDeviceVolumeRaw
(float float1) protected void
void
setHasBattery
(boolean boolean1) void
setHeadphoneType
(int int1) void
void
setIsBatteryPowered
(boolean boolean1) void
setIsHighTier
(boolean boolean1) void
setIsPortable
(boolean boolean1) void
setIsTelevision
(boolean boolean1) void
setIsTurnedOn
(boolean boolean1) void
setIsTwoWay
(boolean boolean1) void
setMaxChannelRange
(int int1) void
setMediaIndex
(short short1) void
setMediaType
(byte byte1) void
setMicIsMuted
(boolean boolean1) void
setMicRange
(int int1) void
setMinChannelRange
(int int1) void
setNoTransmit
(boolean boolean1) void
setParent
(WaveSignalDevice waveSignalDevice) void
setPower
(float float1) void
void
setTransmitRange
(int int1) void
setTurnedOnRaw
(boolean boolean1) void
setUseDelta
(float float1) void
void
void
void
void
TriggerPlayerListening
(boolean boolean1) void
update
(boolean boolean1, boolean boolean2) protected void
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
-
soundIDs
-
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 int1) -
getMaxChannelRange
public int getMaxChannelRange() -
setMaxChannelRange
public void setMaxChannelRange(int int1) -
getIsHighTier
public boolean getIsHighTier() -
setIsHighTier
public void setIsHighTier(boolean boolean1) -
getIsBatteryPowered
public boolean getIsBatteryPowered() -
setIsBatteryPowered
public void setIsBatteryPowered(boolean boolean1) -
getHasBattery
public boolean getHasBattery() -
setHasBattery
public void setHasBattery(boolean boolean1) -
addBattery
-
getBattery
-
transmitBattryChange
public void transmitBattryChange() -
addHeadphones
-
getHeadphones
-
getMicRange
public int getMicRange() -
setMicRange
public void setMicRange(int int1) -
getMicIsMuted
public boolean getMicIsMuted() -
setMicIsMuted
public void setMicIsMuted(boolean boolean1) -
getHeadphoneType
public int getHeadphoneType() -
setHeadphoneType
public void setHeadphoneType(int int1) -
getBaseVolumeRange
public float getBaseVolumeRange() -
setBaseVolumeRange
public void setBaseVolumeRange(float float1) -
getDeviceVolume
public float getDeviceVolume() -
setDeviceVolume
public void setDeviceVolume(float float1) -
setDeviceVolumeRaw
public void setDeviceVolumeRaw(float float1) -
getIsTelevision
public boolean getIsTelevision() -
setIsTelevision
public void setIsTelevision(boolean boolean1) -
getDeviceName
-
setDeviceName
-
getIsTwoWay
public boolean getIsTwoWay() -
setIsTwoWay
public void setIsTwoWay(boolean boolean1) -
getTransmitRange
public int getTransmitRange() -
setTransmitRange
public void setTransmitRange(int int1) -
getIsPortable
public boolean getIsPortable() -
setIsPortable
public void setIsPortable(boolean boolean1) -
getIsTurnedOn
public boolean getIsTurnedOn() -
setIsTurnedOn
public void setIsTurnedOn(boolean boolean1) -
setTurnedOnRaw
public void setTurnedOnRaw(boolean boolean1) -
canBePoweredHere
public boolean canBePoweredHere() -
setRandomChannel
public void setRandomChannel() -
getChannel
public int getChannel() -
setChannel
public void setChannel(int int1) -
setChannel
public void setChannel(int int1, boolean boolean1) -
setChannelRaw
public void setChannelRaw(int int1) -
getUseDelta
public float getUseDelta() -
setUseDelta
public void setUseDelta(float float1) -
getPower
public float getPower() -
setPower
public void setPower(float float1) -
setInitialPower
public void setInitialPower() -
TriggerPlayerListening
public void TriggerPlayerListening(boolean boolean1) -
playSoundSend
-
playSoundLocal
-
playSound
-
cleanSoundsAndEmitter
public void cleanSoundsAndEmitter() -
setEmitterAndPos
protected void setEmitterAndPos() -
updateEmitter
protected void updateEmitter() -
getEmitter
-
update
public void update(boolean boolean1, boolean boolean2) -
updateSimple
public void updateSimple() -
getDeviceVolumeRange
public int getDeviceVolumeRange() -
getDeviceSoundVolumeRange
public int getDeviceSoundVolumeRange() -
doReceiveSignal
public void doReceiveSignal(int int1) -
doReceiveMPSignal
public void doReceiveMPSignal(float float1) -
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 byteBuffer, UdpConnection udpConnection) throws IOException - Throws:
IOException
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
hasMedia
public boolean hasMedia() -
getMediaIndex
public short getMediaIndex() -
setMediaIndex
public void setMediaIndex(short short1) -
getMediaType
public byte getMediaType() -
setMediaType
public void setMediaType(byte byte1) -
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 boolean1)
-