Class IsoLightSource
java.lang.Object
zombie.iso.IsoLightSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
boolean
boolean
boolean
float
boolean
float
float
int
int
static int
float
int
float
int
int
int
int
-
Constructor Summary
ConstructorsConstructorDescriptionIsoLightSource
(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()
Deprecated.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
Deprecated. -
getX
public int getX()- Returns:
- the x
-
setX
public void setX(int _x) -
getY
public int getY()- Returns:
- the y
-
setY
public void setY(int _y) -
getZ
public int getZ()- Returns:
- the z
-
setZ
public void setZ(int _z) -
getR
public float getR()- Returns:
- the r
-
setR
public void setR(float _r) -
getG
public float getG()- Returns:
- the g
-
setG
public void setG(float _g) -
getB
public float getB()- Returns:
- the b
-
setB
public void setB(float _b) -
getRadius
public int getRadius()- Returns:
- the radius
-
setRadius
public void setRadius(int _radius) -
isActive
public boolean isActive()- Returns:
- the bActive
-
setActive
public void setActive(boolean _bActive) -
wasActive
public boolean wasActive()- Returns:
- the bWasActive
-
setWasActive
public void setWasActive(boolean _bWasActive) -
getSwitches
- Returns:
- the switches
-
setSwitches
-
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
-