Class IsoLightSwitch

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

public class IsoLightSwitch extends IsoObject
See Also:
  • Field Details

    • lights

      public final ArrayList<IsoLightSource> lights
    • lightRoom

      public boolean lightRoom
    • RoomID

      public int RoomID
    • bStreetLight

      public boolean bStreetLight
  • Constructor Details

  • Method Details

    • getObjectName

      public 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 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)
    • receiveSyncCustomizedSettings

      public void receiveSyncCustomizedSettings(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, 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)
    • getLights

      public ArrayList<IsoLightSource> getLights()