summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-08 14:46:26 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-08 15:06:43 +0100
commit83911aa890a0a53b1eef8a663dadbcce4b537df4 (patch)
tree40ca26d55fca436f178ef5cc53dbf1593f147fc4 /core/src/ch/asynk/tankontank
parent04ac6409a8f9e921b6cc450752fdfe0e6040ab81 (diff)
downloadRustAndDust-83911aa890a0a53b1eef8a663dadbcce4b537df4.zip
RustAndDust-83911aa890a0a53b1eef8a663dadbcce4b537df4.tar.gz
Tile: add toString()
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-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();