diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-08 14:46:26 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-08 15:06:43 +0100 |
commit | 83911aa890a0a53b1eef8a663dadbcce4b537df4 (patch) | |
tree | 40ca26d55fca436f178ef5cc53dbf1593f147fc4 /core/src/ch | |
parent | 04ac6409a8f9e921b6cc450752fdfe0e6040ab81 (diff) | |
download | RustAndDust-83911aa890a0a53b1eef8a663dadbcce4b537df4.zip RustAndDust-83911aa890a0a53b1eef8a663dadbcce4b537df4.tar.gz |
Tile: add toString()
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Tile.java | 6 |
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(); |