From e01fdfee49867fffb8db66964130915186b81cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 27 Jan 2016 16:01:11 +0100 Subject: Map4Orders: add toJson() --- core/src/ch/asynk/rustanddust/game/map/Map4Orders.java | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.1-2-g2b99