summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-04-12 21:33:15 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-04-12 21:33:15 +0200
commit4d79673572d537a3bfadee71d1d31d82e571bd05 (patch)
treec664d7e816cedf9a5cf576ab6e8184b0ad8e0e79 /core
parent1e110d225aeeb9b5817b0afd73325b022addbd81 (diff)
downloadRustAndDust-4d79673572d537a3bfadee71d1d31d82e571bd05.zip
RustAndDust-4d79673572d537a3bfadee71d1d31d82e571bd05.tar.gz
Player: toString shows 'id'
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Player.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Player.java b/core/src/ch/asynk/rustanddust/game/Player.java
index b4b5772..c31fddb 100644
--- a/core/src/ch/asynk/rustanddust/game/Player.java
+++ b/core/src/ch/asynk/rustanddust/game/Player.java
@@ -54,7 +54,7 @@ public class Player
public String toString()
{
- return String.format("%s Turn:%d AP:%d/%d units:%d casualties:%d", army, turn, apSpent, ap, units.size(), casualties.size());
+ return String.format("[%d] %s Turn:%d AP:%d/%d units:%d casualties:%d", id, army, turn, apSpent, ap, units.size(), casualties.size());
}
public String getStats()