summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-24 11:19:32 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-24 11:19:32 +0100
commitc84b7813764ca2b196a632de7fc06c1fab639326 (patch)
treefe730032abce95db132312bd8513aeb29982c897 /core/src/ch/asynk/rustanddust
parent7e4e99ae6cbd1df3acd94febad7d01122bcb8cc2 (diff)
downloadRustAndDust-c84b7813764ca2b196a632de7fc06c1fab639326.zip
RustAndDust-c84b7813764ca2b196a632de7fc06c1fab639326.tar.gz
Command: add hq attribute in toJson
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Command.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Command.java b/core/src/ch/asynk/rustanddust/game/Command.java
index dbd0c21..a146257 100644
--- a/core/src/ch/asynk/rustanddust/game/Command.java
+++ b/core/src/ch/asynk/rustanddust/game/Command.java
@@ -141,6 +141,7 @@ public class Command extends Order
json.writeObjectStart("unit");
json.writeValue("id", unitId);
json.writeValue("type", unitType);
+ json.writeValue("hq", unit.hq);
json.writeValue("ace", unit.ace);
writeTile(json, "tile", unitTile);
json.writeObjectEnd();