From 83911aa890a0a53b1eef8a663dadbcce4b537df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 8 Jan 2015 14:46:26 +0100 Subject: Tile: add toString() --- core/src/ch/asynk/tankontank/engine/Tile.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 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(); -- cgit v1.1-2-g2b99