Class IsoFire

All Implemented Interfaces:
Serializable, ILuaIsoObject, IsoRenderable, Thumpable

public class IsoFire extends IsoObject
See Also:
  • Field Details

    • NUM_FRAMES_FIRE

      public static final int NUM_FRAMES_FIRE
      See Also:
    • NUM_FRAMES_SMOKE

      public static final int NUM_FRAMES_SMOKE
      See Also:
    • MaxLife

      public static final int MaxLife
      See Also:
    • MinLife

      public static final int MinLife
      See Also:
    • age

      public int age
    • energy

      public int energy
    • life

      public int life
    • lifeStage

      public int lifeStage
    • lifeStageDuration

      public int lifeStageDuration
    • lifeStageTimer

      public int lifeStageTimer
    • spreadDelay

      public int spreadDelay
    • spreadTimer

      public int spreadTimer
    • numFlameParticles

      public int numFlameParticles
    • perm

      public boolean perm
    • smoke

      public boolean smoke
    • 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)
      Specified by:
      render in interface IsoRenderable
      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
    • getSpreadDelay

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

      public void setLife(int Life)
      Up this number to make the fire life longer
    • 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()
    • hasAnimatedAttachments

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

      public void renderAnimatedAttachments(float x, float y, float z, ColorInfo col)
      Overrides:
      renderAnimatedAttachments in class IsoObject