summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-07 15:52:05 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-07 15:52:05 +0200
commit2895dd0df10da75aad67ec49e5b8999ad69444cd (patch)
tree3caf57d296a3b793cd6c7bded66a210653397f64 /core/src/ch/asynk
parent54404666eced21a4b997823bcb76eb203b155bad (diff)
downloadRustAndDust-2895dd0df10da75aad67ec49e5b8999ad69444cd.zip
RustAndDust-2895dd0df10da75aad67ec49e5b8999ad69444cd.tar.gz
Pawn: add toString()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hex.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java
index 962f104..7e240b2 100644
--- a/core/src/ch/asynk/tankontank/game/Hex.java
+++ b/core/src/ch/asynk/tankontank/game/Hex.java
@@ -30,6 +30,11 @@ public class Hex extends Tile
public Terrain terrain;
public int roads;
+ public String toString()
+ {
+ return "[" + getCenter().x + ";" + getCenter().y + "] " + "t:" + terrain + " r:" + roads;
+ }
+
public Hex(float x, float y, TextureAtlas atlas)
{
super(x, y, atlas);