diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-18 02:19:21 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-18 02:19:21 +0100 |
commit | 6177f62a8355e9cadfa0d726947fcf56ce4875c5 (patch) | |
tree | 1ba8309052219abab19b4d0da5cf99b2ebfba0cd /core/src/ch | |
parent | ff5e362003829d59dcdf518c69d5765d19299ccd (diff) | |
download | RustAndDust-6177f62a8355e9cadfa0d726947fcf56ce4875c5.zip RustAndDust-6177f62a8355e9cadfa0d726947fcf56ce4875c5.tar.gz |
Tile: add toString()
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Tile.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Tile.java b/core/src/ch/asynk/tankontank/engine/Tile.java index ffa3b2f..5f08b4e 100644 --- a/core/src/ch/asynk/tankontank/engine/Tile.java +++ b/core/src/ch/asynk/tankontank/engine/Tile.java @@ -65,6 +65,11 @@ public abstract class Tile implements Drawable, Disposable, Iterable<Pawn> return String.format("(%d;%d) %s", col, row, (isOffMap() ? "x" : "")); } + public String toShort() + { + return String.format("(%d;%d)", col, row); + } + @Override public void dispose() { |