Class Radio

java.lang.Object
All Implemented Interfaces:
Talker, IUpdater, WaveSignalDevice

public class Radio
extends Moveable
implements Talker, IUpdater, WaveSignalDevice
  • Field Details

    • deviceData

      protected DeviceData deviceData
    • gameTime

      protected GameTime gameTime
    • lastMin

      protected int lastMin
    • doPowerTick

      protected boolean doPowerTick
    • listenCnt

      protected int listenCnt
  • Constructor Details

    • Radio

      public Radio​(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
  • Method Details

    • getDeviceData

      public DeviceData getDeviceData()
      Specified by:
      getDeviceData in interface WaveSignalDevice
    • setDeviceData

      public void setDeviceData​(DeviceData deviceData)
      Specified by:
      setDeviceData in interface WaveSignalDevice
    • doReceiveSignal

      public void doReceiveSignal​(int int1)
    • AddDeviceText

      public void AddDeviceText​(java.lang.String string, float float1, float float2, float float3, java.lang.String string2, int int1)
      Specified by:
      AddDeviceText in interface WaveSignalDevice
    • AddDeviceText

      public void AddDeviceText​(ChatMessage chatMessage, float float1, float float2, float float3, java.lang.String string, int int1)
    • HasPlayerInRange

      public boolean HasPlayerInRange()
      Specified by:
      HasPlayerInRange in interface WaveSignalDevice
    • ReadFromWorldSprite

      public boolean ReadFromWorldSprite​(java.lang.String string)
      Overrides:
      ReadFromWorldSprite in class Moveable
    • getSaveType

      public int getSaveType()
      Overrides:
      getSaveType in class Moveable
    • getDelta

      public float getDelta()
      Specified by:
      getDelta in interface WaveSignalDevice
    • setDelta

      public void setDelta​(float float1)
      Specified by:
      setDelta in interface WaveSignalDevice
    • getSquare

      public IsoGridSquare getSquare()
      Specified by:
      getSquare in interface WaveSignalDevice
    • getX

      public float getX()
      Specified by:
      getX in interface WaveSignalDevice
    • getY

      public float getY()
      Specified by:
      getY in interface WaveSignalDevice
    • getZ

      public float getZ()
      Specified by:
      getZ in interface WaveSignalDevice
    • getPlayer

      public IsoPlayer getPlayer()
    • render

      public void render()
      Specified by:
      render in interface IUpdater
    • renderlast

      public void renderlast()
      Specified by:
      renderlast in interface IUpdater
    • update

      public void update()
      Specified by:
      update in interface IUpdater
      Overrides:
      update in class InventoryItem
    • IsSpeaking

      public boolean IsSpeaking()
      Specified by:
      IsSpeaking in interface Talker
    • Say

      public void Say​(java.lang.String string)
      Specified by:
      Say in interface Talker
    • getSayLine

      public java.lang.String getSayLine()
      Specified by:
      getSayLine in interface Talker
    • getTalkerType

      public java.lang.String getTalkerType()
      Specified by:
      getTalkerType in interface Talker
    • save

      public void save​(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException
      Overrides:
      save in class Moveable
      Throws:
      java.io.IOException
    • load

      public void load​(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) throws java.io.IOException
      Overrides:
      load in class Moveable
      Throws:
      java.io.IOException