Class IsoLightSwitch

java.lang.Object
zombie.iso.IsoObject
zombie.iso.objects.IsoLightSwitch
All Implemented Interfaces:
java.io.Serializable

public class IsoLightSwitch
extends IsoObject
See Also:
Serialized Form
  • Field Details

    • lights

      public java.util.ArrayList lights
    • lightRoom

      public boolean lightRoom
    • RoomID

      public int RoomID
    • bStreetLight

      public boolean bStreetLight
    • lastMinuteStamp

      protected long lastMinuteStamp
    • bulbBurnMinutes

      protected int bulbBurnMinutes
    • lastMin

      protected int lastMin
    • nextBreakUpdate

      protected int nextBreakUpdate
  • Constructor Details

  • Method Details

    • getObjectName

      public java.lang.String getObjectName()
      Overrides:
      getObjectName in class IsoObject
    • addLightSourceFromSprite

      public void addLightSourceFromSprite()
    • getCanBeModified

      public boolean getCanBeModified()
    • getPower

      public float getPower()
    • setPower

      public void setPower​(float float1)
    • setDelta

      public void setDelta​(float float1)
    • getDelta

      public float getDelta()
    • setUseBattery

      public void setUseBattery​(boolean boolean1)
    • getUseBattery

      public boolean getUseBattery()
    • getHasBattery

      public boolean getHasBattery()
    • setHasBatteryRaw

      public void setHasBatteryRaw​(boolean boolean1)
    • addBattery

      public void addBattery​(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
    • removeBattery

      public DrainableComboItem removeBattery​(IsoGameCharacter gameCharacter)
    • hasLightBulb

      public boolean hasLightBulb()
    • getBulbItem

      public java.lang.String getBulbItem()
    • setBulbItemRaw

      public void setBulbItemRaw​(java.lang.String string)
    • addLightBulb

      public void addLightBulb​(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
    • removeLightBulb

      public InventoryItem removeLightBulb​(IsoGameCharacter gameCharacter)
    • getPrimaryR

      public float getPrimaryR()
    • getPrimaryG

      public float getPrimaryG()
    • getPrimaryB

      public float getPrimaryB()
    • setPrimaryR

      public void setPrimaryR​(float float1)
    • setPrimaryG

      public void setPrimaryG​(float float1)
    • setPrimaryB

      public void setPrimaryB​(float float1)
    • load

      public void load​(java.nio.ByteBuffer byteBuffer, int int1) throws java.io.IOException
      Overrides:
      load in class IsoObject
      Throws:
      java.io.IOException
    • save

      public void save​(java.nio.ByteBuffer byteBuffer) throws java.io.IOException
      Overrides:
      save in class IsoObject
      Throws:
      java.io.IOException
    • onMouseLeftClick

      public boolean onMouseLeftClick​(int int1, int int2)
      Overrides:
      onMouseLeftClick in class IsoObject
    • canSwitchLight

      public boolean canSwitchLight()
    • setActive

      public boolean setActive​(boolean boolean1)
    • setActive

      public boolean setActive​(boolean boolean1, boolean boolean2)
    • setActive

      public boolean setActive​(boolean boolean1, boolean boolean2, boolean boolean3)
    • toggle

      public boolean toggle()
    • switchLight

      public void switchLight​(boolean boolean1)
    • getCustomSettingsFromItem

      public void getCustomSettingsFromItem​(InventoryItem inventoryItem)
    • setCustomSettingsToItem

      public void setCustomSettingsToItem​(InventoryItem inventoryItem)
    • syncCustomizedSettings

      public void syncCustomizedSettings​(UdpConnection udpConnection)
    • receiveSyncCustomizedSettings

      public void receiveSyncCustomizedSettings​(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
    • syncIsoObjectSend

      public void syncIsoObjectSend​(ByteBufferWriter byteBufferWriter)
      Overrides:
      syncIsoObjectSend in class IsoObject
    • syncIsoObject

      public void syncIsoObject​(boolean boolean1, byte byte1, UdpConnection udpConnection, java.nio.ByteBuffer byteBuffer)
      Overrides:
      syncIsoObject in class IsoObject
    • syncIsoObject

      public void syncIsoObject​(boolean boolean1, byte byte1, UdpConnection udpConnection)
    • update

      public void update()
      Overrides:
      update in class IsoObject
    • isActivated

      public boolean isActivated()
    • addToWorld

      public void addToWorld()
      Overrides:
      addToWorld in class IsoObject
    • removeFromWorld

      public void removeFromWorld()
      Overrides:
      removeFromWorld in class IsoObject
    • chunkLoaded

      public static void chunkLoaded​(IsoChunk chunk)