summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-18 15:21:41 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-18 15:21:41 +0100
commit3900a5fffa4de943cdfc67f7352be48942b27482 (patch)
tree22b5dbc4bc49c73c250fc18b09af5e15d6f26a46 /core
parent9b22a7b6d065ffd24222a8aebd85a879ee0ecb1d (diff)
downloadRustAndDust-3900a5fffa4de943cdfc67f7352be48942b27482.zip
RustAndDust-3900a5fffa4de943cdfc67f7352be48942b27482.tar.gz
Player: add Turn to toString()
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Player.java3
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()