1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package ch.asynk.gdx.boardgame; public class Tile { public float x; public float y; public Tile(float x, float y) { this.x = x; this.y = y; } @Override public String toString() { return String.format("[%4d, %4d]", (int)x, (int)y); } }