Package zombie.radio.devices
Class DeviceData
java.lang.Object
zombie.radio.devices.DeviceData
- All Implemented Interfaces:
java.lang.Cloneable
public final class DeviceData
extends java.lang.Object
implements java.lang.Cloneable
-
Field Summary
Fields Modifier and Type Field Description protected floatbaseVolumeRangeprotected intchannelprotected booleanchannelChangedRecentlyprotected ColorcurrentMediaColorprotected java.lang.StringcurrentMediaLineprotected java.lang.StringdeviceNameprotected floatdeviceVolumeprotected booleandoTriggerWorldSoundprotected BaseSoundEmitteremitterprotected GameTimegameTimeprotected booleanhasBatteryprotected intheadphoneTypeprotected booleanisBatteryPoweredprotected booleanisHighTierprotected booleanisPlayingMediaprotected booleanisPortableprotected booleanisStoppingMediaprotected booleanisTelevisionprotected booleanisTurnedOnprotected longlastMinuteStampprotected intlastRecordedDistanceprotected floatlineCounterprotected intlistenCntprotected intmaxChannelRangeprotected shortmediaIndexprotected java.lang.StringmediaItemprotected intmediaLineIndexprotected bytemediaTypeprotected booleanmicIsMutedprotected intmicRangeprotected intminChannelRangeprotected booleannoTransmitprotected WaveSignalDeviceparentprotected MediaDataplayingMediaprotected floatpowerDeltaprotected DevicePresetspresetsprotected longradioLoopSoundprotected floatsignalCounterprotected floatsoundCounterprotected java.util.ArrayListsoundIDsprotected floatstopMediaCounterprotected inttransmitRangeprotected booleantwoWayprotected floatuseDelta -
Constructor Summary
Constructors Constructor Description DeviceData()DeviceData(WaveSignalDevice waveSignalDevice) -
Method Summary
Modifier and Type Method Description voidaddBattery(DrainableComboItem drainableComboItem)voidaddHeadphones(InventoryItem inventoryItem)voidaddMediaItem(InventoryItem inventoryItem)booleancanBePoweredHere()voidcleanSoundsAndEmitter()protected java.lang.Objectclone()voiddoReceiveSignal(int int1)voidgeneratePresets()floatgetBaseVolumeRange()InventoryItemgetBattery(ItemContainer itemContainer)intgetChannel()DeviceDatagetClone()java.lang.StringgetDeviceName()DevicePresetsgetDevicePresets()intgetDeviceSoundVolumeRange()floatgetDeviceVolume()intgetDeviceVolumeRange()BaseSoundEmittergetEmitter()booleangetHasBattery()InventoryItemgetHeadphones(ItemContainer itemContainer)intgetHeadphoneType()booleangetIsBatteryPowered()booleangetIsHighTier()booleangetIsPortable()booleangetIsTelevision()booleangetIsTurnedOn()booleangetIsTwoWay()intgetLastRecordedDistance()intgetMaxChannelRange()MediaDatagetMediaData()shortgetMediaIndex()bytegetMediaType()booleangetMicIsMuted()intgetMicRange()intgetMinChannelRange()WaveSignalDevicegetParent()floatgetPower()intgetTransmitRange()floatgetUseDelta()booleanhasMedia()booleanisInventoryDevice()booleanisIsoDevice()booleanisNoTransmit()booleanisPlayingMedia()booleanisReceivingSignal()booleanisVehicleDevice()voidload(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1)voidplaySound(java.lang.String string, float float1, boolean boolean1)voidplaySoundLocal(java.lang.String string, boolean boolean1)voidplaySoundSend(java.lang.String string, boolean boolean1)voidreceiveDeviceDataStatePacket(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)InventoryItemremoveMediaItem(ItemContainer itemContainer)voidsave(java.nio.ByteBuffer byteBuffer, boolean boolean1)voidsetBaseVolumeRange(float float1)voidsetChannel(int int1)voidsetChannel(int int1, boolean boolean1)voidsetChannelRaw(int int1)voidsetDeviceName(java.lang.String string)voidsetDevicePresets(DevicePresets devicePresets)voidsetDeviceVolume(float float1)voidsetDeviceVolumeRaw(float float1)protected voidsetEmitterAndPos()voidsetHasBattery(boolean boolean1)voidsetHeadphoneType(int int1)voidsetIsBatteryPowered(boolean boolean1)voidsetIsHighTier(boolean boolean1)voidsetIsPortable(boolean boolean1)voidsetIsTelevision(boolean boolean1)voidsetIsTurnedOn(boolean boolean1)voidsetIsTwoWay(boolean boolean1)voidsetMaxChannelRange(int int1)voidsetMediaIndex(short short1)voidsetMediaType(byte byte1)voidsetMicIsMuted(boolean boolean1)voidsetMicRange(int int1)voidsetMinChannelRange(int int1)voidsetNoTransmit(boolean boolean1)voidsetParent(WaveSignalDevice waveSignalDevice)voidsetPower(float float1)voidsetRandomChannel()voidsetTransmitRange(int int1)voidsetTurnedOnRaw(boolean boolean1)voidsetUseDelta(float float1)voidStartPlayMedia()voidStopPlayMedia()voidtransmitBattryChange()voidtransmitPresets()voidTriggerPlayerListening(boolean boolean1)voidupdate(boolean boolean1, boolean boolean2)protected voidupdateEmitter()voidupdateMediaPlaying()voidupdateSimple()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
deviceName
protected java.lang.String 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
protected java.util.ArrayList soundIDs -
mediaIndex
protected short mediaIndex -
mediaType
protected byte mediaType -
mediaItem
protected java.lang.String mediaItem -
playingMedia
-
isPlayingMedia
protected boolean isPlayingMedia -
mediaLineIndex
protected int mediaLineIndex -
lineCounter
protected float lineCounter -
currentMediaLine
protected java.lang.String 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 -
signalCounter
protected float signalCounter -
soundCounter
protected float soundCounter
-
-
Constructor Details
-
DeviceData
public DeviceData() -
DeviceData
-
-
Method Details
-
generatePresets
public void generatePresets() -
clone
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
getClone
-
getParent
-
setParent
-
getDevicePresets
-
setDevicePresets
-
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
public java.lang.String getDeviceName() -
setDeviceName
public void setDeviceName(java.lang.String string) -
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) -
TriggerPlayerListening
public void TriggerPlayerListening(boolean boolean1) -
playSoundSend
public void playSoundSend(java.lang.String string, boolean boolean1) -
playSoundLocal
public void playSoundLocal(java.lang.String string, boolean boolean1) -
playSound
public void playSound(java.lang.String string, float float1, boolean boolean1) -
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) -
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(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection) throws java.io.IOException- Throws:
java.io.IOException
-
save
public void save(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) throws java.io.IOException- Throws:
java.io.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)
-