diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-27 16:01:11 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-27 22:26:28 +0100 |
commit | e01fdfee49867fffb8db66964130915186b81cea (patch) | |
tree | 2ce67f088a2cea0295ef751930f04811bae201c7 /core/src/ch/asynk/rustanddust | |
parent | c0a07defa9d083a82d126202fff0746e7e54b7cb (diff) | |
download | RustAndDust-e01fdfee49867fffb8db66964130915186b81cea.zip RustAndDust-e01fdfee49867fffb8db66964130915186b81cea.tar.gz |
Map4Orders: add toJson()
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/map/Map4Orders.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java index fdb46f1..eaa4b1d 100644 --- a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java +++ b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java @@ -41,6 +41,11 @@ public abstract class Map4Orders extends Map3Animations protected int ordersSize() { return orders.size(); } protected void ordersClear() { orders.dispose(); } + public String toJson() + { + return orders.toJson(battle.getPlayer()); + } + // STATES ENTRY -> public void showOnBoard(final Unit unit, Hex to, Orientation o) |