From 6177f62a8355e9cadfa0d726947fcf56ce4875c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 18 Jan 2015 02:19:21 +0100 Subject: Tile: add toString() --- core/src/ch/asynk/tankontank/engine/Tile.java | 5 +++++ 1 file changed, 5 insertions(+) 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 return String.format("(%d;%d) %s", col, row, (isOffMap() ? "x" : "")); } + public String toShort() + { + return String.format("(%d;%d)", col, row); + } + @Override public void dispose() { -- cgit v1.1-2-g2b99