diff options
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/Tile.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Tile.java b/core/src/ch/asynk/gdx/boardgame/Tile.java new file mode 100644 index 0000000..ae0bb70 --- /dev/null +++ b/core/src/ch/asynk/gdx/boardgame/Tile.java @@ -0,0 +1,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); + } +} |