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 power)
    • setDelta

      public void setDelta​(float delta)
    • getDelta

      public float getDelta()
    • setUseBattery

      public void setUseBattery​(boolean b)
    • getUseBattery

      public boolean getUseBattery()
    • getHasBattery

      public boolean getHasBattery()
    • setHasBatteryRaw

      public void setHasBatteryRaw​(boolean b)
    • addBattery

      public void addBattery​(IsoGameCharacter chr, InventoryItem battery)
    • removeBattery

      public DrainableComboItem removeBattery​(IsoGameCharacter chr)
    • hasLightBulb

      public boolean hasLightBulb()
    • getBulbItem

      public java.lang.String getBulbItem()
    • setBulbItemRaw

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

      public void addLightBulb​(IsoGameCharacter chr, InventoryItem bulb)
    • removeLightBulb

      public InventoryItem removeLightBulb​(IsoGameCharacter chr)
    • getPrimaryR

      public float getPrimaryR()
    • getPrimaryG

      public float getPrimaryG()
    • getPrimaryB

      public float getPrimaryB()
    • setPrimaryR

      public void setPrimaryR​(float r)
    • setPrimaryG

      public void setPrimaryG​(float g)
    • setPrimaryB

      public void setPrimaryB​(float b)
    • load

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

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

      public boolean onMouseLeftClick​(int x, int y)
      Overrides:
      onMouseLeftClick in class IsoObject
    • canSwitchLight

      public boolean canSwitchLight()
    • setActive

      public boolean setActive​(boolean active)
    • setActive

      public boolean setActive​(boolean active, boolean setActiveBoolOnly)
    • setActive

      public boolean setActive​(boolean active, boolean setActiveBoolOnly, boolean ignoreSwitchCheck)
    • toggle

      public boolean toggle()
    • switchLight

      public void switchLight​(boolean Activated)
    • getCustomSettingsFromItem

      public void getCustomSettingsFromItem​(InventoryItem item)
    • setCustomSettingsToItem

      public void setCustomSettingsToItem​(InventoryItem item)
    • syncCustomizedSettings

      public void syncCustomizedSettings​(UdpConnection source)
    • receiveSyncCustomizedSettings

      public void receiveSyncCustomizedSettings​(java.nio.ByteBuffer bb, UdpConnection connection)
    • syncIsoObjectSend

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

      public void syncIsoObject​(boolean bRemote, byte val, UdpConnection source, java.nio.ByteBuffer bb)
      Overrides:
      syncIsoObject in class IsoObject
    • syncIsoObject

      public void syncIsoObject​(boolean bRemote, byte val, UdpConnection source)
    • 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)