summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/tankontank/engine/Tile.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Tile.java b/core/src/ch/asynk/tankontank/engine/Tile.java
index 8a1e778..37c7199 100644
--- a/core/src/ch/asynk/tankontank/engine/Tile.java
+++ b/core/src/ch/asynk/tankontank/engine/Tile.java
@@ -58,6 +58,12 @@ public abstract class Tile implements Drawable, Disposable, Iterable<Pawn>
public int getRow() { return row; }
@Override
+ public String toString()
+ {
+ return String.format("(%d;%d) %s", col, row, (isOffMap() ? "x" : ""));
+ }
+
+ @Override
public void dispose()
{
stack.clear();