diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-04-12 21:33:15 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-04-12 21:33:15 +0200 |
commit | 4d79673572d537a3bfadee71d1d31d82e571bd05 (patch) | |
tree | c664d7e816cedf9a5cf576ab6e8184b0ad8e0e79 /core/src/ch/asynk/rustanddust | |
parent | 1e110d225aeeb9b5817b0afd73325b022addbd81 (diff) | |
download | RustAndDust-4d79673572d537a3bfadee71d1d31d82e571bd05.zip RustAndDust-4d79673572d537a3bfadee71d1d31d82e571bd05.tar.gz |
Player: toString shows 'id'
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Player.java | 2 |
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() |