Class IsoFire

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

public class IsoFire extends IsoObject
See Also:
  • Field Details

    • Age

      public int Age
    • Energy

      public int Energy
    • Life

      public int Life
    • LifeStage

      public int LifeStage
    • LifeStageDuration

      public int LifeStageDuration
    • LifeStageTimer

      public int LifeStageTimer
    • MaxLife

      public int MaxLife
    • MinLife

      public int MinLife
    • SpreadDelay

      public int SpreadDelay
    • SpreadTimer

      public int SpreadTimer
    • numFlameParticles

      public int numFlameParticles
    • perm

      public boolean perm
    • bSmoke

      public boolean bSmoke
    • LightSource

      public IsoLightSource LightSource
    • LightRadius

      public int LightRadius
    • LightOscillator

      public float LightOscillator
  • Constructor Details

    • IsoFire

      public IsoFire(IsoCell cell)
    • IsoFire

      public IsoFire(IsoCell cell, IsoGridSquare gridSquare)
    • IsoFire

      public IsoFire(IsoCell cell, IsoGridSquare gridSquare, boolean CanBurnAnywhere, int StartingEnergy, int SetLife, boolean isSmoke)
    • IsoFire

      public IsoFire(IsoCell cell, IsoGridSquare gridSquare, boolean CanBurnAnywhere, int StartingEnergy, int SetLife)
    • IsoFire

      public IsoFire(IsoCell cell, IsoGridSquare gridSquare, boolean CanBurnAnywhere, int StartingEnergy)
  • Method Details

    • getObjectName

      public String getObjectName()
      Overrides:
      getObjectName in class IsoObject
    • save

      public void save(ByteBuffer output, boolean IS_DEBUG_SAVE) throws IOException
      Overrides:
      save in class IsoObject
      Throws:
      IOException
    • load

      public void load(ByteBuffer b, int WorldVersion, boolean IS_DEBUG_SAVE) throws IOException
      Overrides:
      load in class IsoObject
      Throws:
      IOException
    • CanAddSmoke

      public static boolean CanAddSmoke(IsoGridSquare gridSquare, boolean CanBurnAnywhere)
    • CanAddFire

      public static boolean CanAddFire(IsoGridSquare gridSquare, boolean CanBurnAnywhere)
    • CanAddFire

      public static boolean CanAddFire(IsoGridSquare gridSquare, boolean CanBurnAnywhere, boolean smoke)
    • Fire_IsSquareFlamable

      public static boolean Fire_IsSquareFlamable(IsoGridSquare gridSquare)
    • HasTooltip

      public boolean HasTooltip()
      Overrides:
      HasTooltip in class IsoObject
    • Spread

      public void Spread()
    • TestCollide

      public boolean TestCollide(IsoMovingObject obj, IsoGridSquare PassedObjectSquare)
    • TestVision

      public IsoObject.VisionResult TestVision(IsoGridSquare from, IsoGridSquare to)
      Overrides:
      TestVision in class IsoObject
    • update

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

      public void render(float x, float y, float z, ColorInfo col, boolean bDoChild, boolean bWallLightingPass, Shader shader)
      Overrides:
      render in class IsoObject
    • extinctFire

      public void extinctFire()
    • setSpreadDelay

      public void setSpreadDelay(int SpreadDelay)
      The more this number is low, the faster it's gonna spread
      Parameters:
      SpreadDelay -
    • getSpreadDelay

      public int getSpreadDelay()
      The more this number is low, the faster it's gonna spread
      Returns:
    • setLife

      public void setLife(int Life)
      Up this number to make the fire life longer
      Parameters:
      Life -
    • getLife

      public int getLife()
    • getEnergy

      public int getEnergy()
    • isPermanent

      public boolean isPermanent()
    • setLifeStage

      public void setLifeStage(int lifeStage)
    • setLightRadius

      public void setLightRadius(int radius)
    • getLightRadius

      public int getLightRadius()
    • addToWorld

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

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

      public void saveChange(String change, se.krka.kahlua.vm.KahluaTable tbl, ByteBuffer bb)
      Overrides:
      saveChange in class IsoObject
    • loadChange

      public void loadChange(String change, ByteBuffer bb)
      Overrides:
      loadChange in class IsoObject
    • isCampfire

      public boolean isCampfire()