summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-10-17 16:00:48 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-10-17 16:00:48 +0200
commitfc7828cc401b616b2bf8ccc7161e697e60d5a8a5 (patch)
tree35fcdda4d665c17d88f9c4b65aea31b523997598 /core/src/ch/asynk/gdx
parentd016f323cffabba1046dc76e55c22c8c2adbc9c2 (diff)
downloadgdx-boardgame-fc7828cc401b616b2bf8ccc7161e697e60d5a8a5.zip
gdx-boardgame-fc7828cc401b616b2bf8ccc7161e697e60d5a8a5.tar.gz
add Tile with minimum features
Diffstat (limited to 'core/src/ch/asynk/gdx')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Tile.java18
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);
+ }
+}