From 3900a5fffa4de943cdfc67f7352be48942b27482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 18 Dec 2014 15:21:41 +0100 Subject: Player: add Turn to toString() --- core/src/ch/asynk/tankontank/game/Player.java | 3 +-- 1 file changed, 1 insertion(+), 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() -- cgit v1.1-2-g2b99