Package zombie.iso

Class IsoLightSource

java.lang.Object
zombie.iso.IsoLightSource

public class IsoLightSource extends Object
  • Field Details

    • NextID

      public static int NextID
    • ID

      public int ID
    • x

      public int x
    • y

      public int y
    • z

      public int z
    • r

      public float r
    • g

      public float g
    • b

      public float b
    • rJNI

      public float rJNI
    • gJNI

      public float gJNI
    • bJNI

      public float bJNI
    • radius

      public int radius
    • bActive

      public boolean bActive
    • bWasActive

      public boolean bWasActive
    • bActiveJNI

      public boolean bActiveJNI
    • life

      public int life
    • startlife

      public int startlife
    • localToBuilding

      public IsoBuilding localToBuilding
    • bHydroPowered

      public boolean bHydroPowered
    • switches

      public ArrayList<IsoLightSwitch> switches
    • chunk

      public IsoChunk chunk
    • lightMap

      public Object lightMap
  • Constructor Details

    • IsoLightSource

      public IsoLightSource(int x, int y, int z, float r, float g, float b, int radius)
    • IsoLightSource

      public IsoLightSource(int x, int y, int z, float r, float g, float b, int radius, IsoBuilding building)
    • IsoLightSource

      public IsoLightSource(int x, int y, int z, float r, float g, float b, int radius, int life)
  • Method Details

    • update

      public void update()
    • getX

      public int getX()
      Returns:
      the x
    • setX

      public void setX(int x)
      Parameters:
      x - the x to set
    • getY

      public int getY()
      Returns:
      the y
    • setY

      public void setY(int y)
      Parameters:
      y - the y to set
    • getZ

      public int getZ()
      Returns:
      the z
    • setZ

      public void setZ(int z)
      Parameters:
      z - the z to set
    • getR

      public float getR()
      Returns:
      the r
    • setR

      public void setR(float r)
      Parameters:
      r - the r to set
    • getG

      public float getG()
      Returns:
      the g
    • setG

      public void setG(float g)
      Parameters:
      g - the g to set
    • getB

      public float getB()
      Returns:
      the b
    • setB

      public void setB(float b)
      Parameters:
      b - the b to set
    • getRadius

      public int getRadius()
      Returns:
      the radius
    • setRadius

      public void setRadius(int radius)
      Parameters:
      radius - the radius to set
    • isActive

      public boolean isActive()
      Returns:
      the bActive
    • setActive

      public void setActive(boolean bActive)
      Parameters:
      bActive - the bActive to set
    • wasActive

      public boolean wasActive()
      Returns:
      the bWasActive
    • setWasActive

      public void setWasActive(boolean bWasActive)
      Parameters:
      bWasActive - the bWasActive to set
    • getSwitches

      public ArrayList<IsoLightSwitch> getSwitches()
      Returns:
      the switches
    • setSwitches

      public void setSwitches(ArrayList<IsoLightSwitch> switches)
      Parameters:
      switches - the switches to set
    • clearInfluence

      public void clearInfluence()
    • isInBounds

      public boolean isInBounds(int minX, int minY, int maxX, int maxY)
    • isInBounds

      public boolean isInBounds()
    • isHydroPowered

      public boolean isHydroPowered()
    • getLocalToBuilding

      public IsoBuilding getLocalToBuilding()