Package zombie.iso
Class IsoLightSource
java.lang.Object
zombie.iso.IsoLightSource
public class IsoLightSource
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description float
b
boolean
bActive
boolean
bActiveJNI
boolean
bHydroPowered
float
bJNI
boolean
bWasActive
IsoChunk
chunk
float
g
float
gJNI
int
ID
int
life
java.lang.Object
lightMap
IsoBuilding
localToBuilding
static int
NextID
float
r
int
radius
float
rJNI
int
startlife
java.util.ArrayList
switches
int
x
int
y
int
z
-
Constructor Summary
Constructors Constructor Description IsoLightSource(int x, int y, int z, float r, float g, float b, int radius)
IsoLightSource(int x, int y, int z, float r, float g, float b, int radius, int life)
IsoLightSource(int x, int y, int z, float r, float g, float b, int radius, IsoBuilding building)
-
Method Summary
Modifier and Type Method Description void
clearInfluence()
float
getB()
float
getG()
float
getR()
int
getRadius()
java.util.ArrayList
getSwitches()
int
getX()
int
getY()
int
getZ()
boolean
isActive()
boolean
isInBounds()
boolean
isInBounds(int minX, int minY, int maxX, int maxY)
void
resetTiles()
void
setActive(boolean bActive)
void
setB(float b)
void
setG(float g)
void
setR(float r)
void
setRadius(int radius)
void
setSwitches(java.util.ArrayList switches)
void
setWasActive(boolean bWasActive)
void
setX(int x)
void
setY(int y)
void
setZ(int z)
void
update()
boolean
wasActive()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
bHydroPowered
public boolean bHydroPowered -
switches
public java.util.ArrayList switches -
chunk
-
lightMap
public java.lang.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() -
resetTiles
public void resetTiles() -
getX
public int getX() -
setX
public void setX(int x) -
getY
public int getY() -
setY
public void setY(int y) -
getZ
public int getZ() -
setZ
public void setZ(int z) -
getR
public float getR() -
setR
public void setR(float r) -
getG
public float getG() -
setG
public void setG(float g) -
getB
public float getB() -
setB
public void setB(float b) -
getRadius
public int getRadius() -
setRadius
public void setRadius(int radius) -
isActive
public boolean isActive() -
setActive
public void setActive(boolean bActive) -
wasActive
public boolean wasActive() -
setWasActive
public void setWasActive(boolean bWasActive) -
getSwitches
public java.util.ArrayList getSwitches() -
setSwitches
public void setSwitches(java.util.ArrayList switches) -
clearInfluence
public void clearInfluence() -
isInBounds
public boolean isInBounds(int minX, int minY, int maxX, int maxY) -
isInBounds
public boolean isInBounds()
-