Class IsoLightSwitch

All Implemented Interfaces:
Serializable, Thumpable

public class IsoLightSwitch extends IsoObject
See Also:
  • Field Details

    • Activated

      public boolean Activated
    • lights

      public final ArrayList<IsoLightSource> lights
    • lightRoom

      public boolean lightRoom
    • RoomID

      public long 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 String getObjectName()
      Overrides:
      getObjectName in class IsoObject
    • addLightSourceFromSprite

      public void addLightSourceFromSprite()
    • getCanBeModified

      public boolean getCanBeModified()
    • setCanBeModified

      public void setCanBeModified(boolean boolean0)
    • 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)
    • setUseBatteryDirect

      public void setUseBatteryDirect(boolean boolean0)
    • getUseBattery

      public boolean getUseBattery()
    • getHasBattery

      public boolean getHasBattery()
    • setHasBattery

      public void setHasBattery(boolean boolean0)
    • 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 String getBulbItem()
    • setBulbItemRaw

      public void setBulbItemRaw(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(ByteBuffer input, int WorldVersion, boolean IS_DEBUG_SAVE) throws IOException
      Overrides:
      load in class IsoObject
      Throws:
      IOException
    • save

      public void save(ByteBuffer output, boolean IS_DEBUG_SAVE) throws IOException
      Overrides:
      save in class IsoObject
      Throws:
      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)
    • syncIsoObjectSend

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

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

      public boolean hasAnimatedAttachments()
      Overrides:
      hasAnimatedAttachments in class IsoObject
    • renderAnimatedAttachments

      public void renderAnimatedAttachments(float float0, float float1, float float2, ColorInfo colorInfo)
      Overrides:
      renderAnimatedAttachments in class IsoObject
    • isActivated

      public boolean isActivated()
    • setActivated

      public void setActivated(boolean boolean0)
    • 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)
    • getLights

      public ArrayList<IsoLightSource> getLights()
    • shouldShowOnOverlay

      public boolean shouldShowOnOverlay()
      Overrides:
      shouldShowOnOverlay in class IsoObject