diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-07 15:52:05 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-07 15:52:05 +0200 |
commit | 2895dd0df10da75aad67ec49e5b8999ad69444cd (patch) | |
tree | 3caf57d296a3b793cd6c7bded66a210653397f64 | |
parent | 54404666eced21a4b997823bcb76eb203b155bad (diff) | |
download | RustAndDust-2895dd0df10da75aad67ec49e5b8999ad69444cd.zip RustAndDust-2895dd0df10da75aad67ec49e5b8999ad69444cd.tar.gz |
Pawn: add toString()
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hex.java | 5 |
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); |