WaterTile.java 690 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package eu.tankernn.gameEngine.renderEngine.water;
  2. import org.lwjgl.util.vector.Vector3f;
  3. import eu.tankernn.gameEngine.util.IPositionable;
  4. public class WaterTile implements IPositionable {
  5. private float height;
  6. private float x, z;
  7. private float size;
  8. public WaterTile(float centerX, float centerZ, float height, float size) {
  9. this.x = centerX;
  10. this.z = centerZ;
  11. this.height = height;
  12. this.size = size;
  13. }
  14. public float getHeight() {
  15. return height;
  16. }
  17. public float getX() {
  18. return x;
  19. }
  20. public float getZ() {
  21. return z;
  22. }
  23. public float getSize() {
  24. return size;
  25. }
  26. @Override
  27. public Vector3f getPosition() {
  28. return new Vector3f(x, height, z);
  29. }
  30. }