summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hex.java5
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);