Package engine.terrain
Class Terrain
java.lang.Object
engine.terrain.Terrain
Terrain Object which is makes up each cell of grass on the grid.
-
Constructor Summary
ConstructorsConstructorDescriptionTerrain
(int gridX, int gridZ, Loader loader, TextureAttribute texture) Sets the position and texture and then generates the model for the terrain -
Method Summary
-
Constructor Details
-
Terrain
Sets the position and texture and then generates the model for the terrain- Parameters:
gridX
-gridZ
-loader
-texture
-
-
-
Method Details
-
getSize
public static float getSize() -
setX
public void setX(float x) -
setZ
public void setZ(float z) -
getX
public float getX() -
getZ
public float getZ() -
getModel
-
getTexture
-