Package engine.world
Class WorldGrid
java.lang.Object
engine.world.WorldGrid
Stores the entire grid of tiles in a matrix.
-
Constructor Summary
ConstructorsConstructorDescriptionWorldGrid
(Loader loader, TextureAttribute texture) Generates the complete grid of all terrains. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBuildable
(int x, int z, Entity buildable) void
void
addZoneBuildable
(int x, int z, Entity zoneBuildable) void
Tile[][]
int
-
Constructor Details
-
WorldGrid
Generates the complete grid of all terrains.- Parameters:
loader
-texture
-
-
-
Method Details
-
getWorldSize
public int getWorldSize() -
getWorldmatrix
-
getTerrainList
-
getZoneList
-
getBuildableList
-
getZoneBuildableList
-
addBuildable
-
addZone
-
addZoneBuildable
-
clearGrid
public void clearGrid()
-