Class ZombiePopulationRenderer
java.lang.Object
zombie.popman.ZombiePopulationRenderer
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoolean
(String name) getOptionByIndex
(int index) getOptionByName
(String name) int
void
load()
void
outlineRect
(float x, float y, float w, float h, float r, float g, float b, float a) void
void
renderCellInfo
(int cellX, int cellY, int effectivePopulation, int targetPopulation, float lastRepopTime) void
renderCircle
(float x, float y, float radius, float r, float g, float b, float a) void
renderLine
(float x1, float y1, float x2, float y2, float r, float g, float b, float a) void
renderRect
(float x, float y, float w, float h, float r, float g, float b, float a) void
renderString
(float x, float y, String str, double r, double g, double b, double a) void
renderVehicle
(int sqlid, float x, float y, float r, float g, float b) void
renderZombie
(float x, float y, float r, float g, float b) void
save()
void
setBoolean
(String name, boolean value) void
setWallFollowerEnd
(int x, int y) void
setWallFollowerStart
(int x, int y) float
uiToWorldX
(float x) float
uiToWorldY
(float y) void
wallFollowerMouseMove
(int x, int y) float
worldToScreenX
(float x) float
worldToScreenY
(float y)
-
Constructor Details
-
ZombiePopulationRenderer
public ZombiePopulationRenderer()
-
-
Method Details
-
worldToScreenX
public float worldToScreenX(float x) -
worldToScreenY
public float worldToScreenY(float y) -
uiToWorldX
public float uiToWorldX(float x) -
uiToWorldY
public float uiToWorldY(float y) -
renderString
-
renderRect
public void renderRect(float x, float y, float w, float h, float r, float g, float b, float a) -
renderLine
public void renderLine(float x1, float y1, float x2, float y2, float r, float g, float b, float a) -
renderCircle
public void renderCircle(float x, float y, float radius, float r, float g, float b, float a) -
renderZombie
public void renderZombie(float x, float y, float r, float g, float b) -
renderVehicle
public void renderVehicle(int sqlid, float x, float y, float r, float g, float b) -
outlineRect
public void outlineRect(float x, float y, float w, float h, float r, float g, float b, float a) -
renderCellInfo
public void renderCellInfo(int cellX, int cellY, int effectivePopulation, int targetPopulation, float lastRepopTime) -
render
-
setWallFollowerStart
public void setWallFollowerStart(int x, int y) -
setWallFollowerEnd
public void setWallFollowerEnd(int x, int y) -
wallFollowerMouseMove
public void wallFollowerMouseMove(int x, int y) -
getOptionByName
-
getOptionCount
public int getOptionCount() -
getOptionByIndex
-
setBoolean
-
getBoolean
-
save
public void save() -
load
public void load()
-