diff options
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hex.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java index 962f104..7e240b2 100644 --- a/core/src/ch/asynk/tankontank/game/Hex.java +++ b/core/src/ch/asynk/tankontank/game/Hex.java @@ -30,6 +30,11 @@ public class Hex extends Tile public Terrain terrain; public int roads; + public String toString() + { + return "[" + getCenter().x + ";" + getCenter().y + "] " + "t:" + terrain + " r:" + roads; + } + public Hex(float x, float y, TextureAtlas atlas) { super(x, y, atlas); |