Class Terrain

java.lang.Object
engine.terrain.Terrain

public class Terrain extends Object
Terrain Object which is makes up each cell of grass on the grid.
  • Constructor Details

    • Terrain

      public Terrain(int gridX, int gridZ, Loader loader, TextureAttribute texture)
      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

      public RawModel getModel()
    • getTexture

      public TextureAttribute getTexture()