diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-18 15:21:41 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-18 15:21:41 +0100 |
commit | 3900a5fffa4de943cdfc67f7352be48942b27482 (patch) | |
tree | 22b5dbc4bc49c73c250fc18b09af5e15d6f26a46 /core/src/ch/asynk/tankontank | |
parent | 9b22a7b6d065ffd24222a8aebd85a879ee0ecb1d (diff) | |
download | RustAndDust-3900a5fffa4de943cdfc67f7352be48942b27482.zip RustAndDust-3900a5fffa4de943cdfc67f7352be48942b27482.tar.gz |
Player: add Turn to toString()
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Player.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Player.java b/core/src/ch/asynk/tankontank/game/Player.java index e84761d..e43e892 100644 --- a/core/src/ch/asynk/tankontank/game/Player.java +++ b/core/src/ch/asynk/tankontank/game/Player.java @@ -49,8 +49,7 @@ public class Player public String toString() { - return army + " AP: " + actionPoints + - " units:" + units.size() + " casualties:" + casualties.size(); + return String.format("%s Turn:%d AP:%d units:%d casualties:%d", army, turn, actionPoints, units.size(), casualties.size()); } public String getStats() |