summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-18 02:19:21 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-18 02:19:21 +0100
commit6177f62a8355e9cadfa0d726947fcf56ce4875c5 (patch)
tree1ba8309052219abab19b4d0da5cf99b2ebfba0cd /core/src/ch
parentff5e362003829d59dcdf518c69d5765d19299ccd (diff)
downloadRustAndDust-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.java5
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()
{