diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-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() { |