Package zombie.iso
Class IsoLightSource
java.lang.Object
zombie.iso.IsoLightSource
-
Field Summary
Modifier and TypeFieldDescriptionfloat
boolean
boolean
boolean
float
boolean
float
float
int
int
static int
float
int
float
int
int
int
int
-
Constructor Summary
ConstructorDescriptionIsoLightSource
(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 TypeMethodDescriptionvoid
float
getB()
float
getG()
float
getR()
int
int
getX()
int
getY()
int
getZ()
boolean
isActive()
boolean
boolean
boolean
isInBounds
(int minX, int minY, int maxX, int maxY) void
setActive
(boolean bActive) void
setB
(float b) void
setG
(float g) void
setR
(float r) void
setRadius
(int radius) void
setSwitches
(ArrayList<IsoLightSwitch> switches) void
setWasActive
(boolean bWasActive) void
setX
(int x) void
setY
(int y) void
setZ
(int z) void
update()
boolean
-
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
-
chunk
-
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
- Returns:
- the switches
-
setSwitches
- 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
-