From e7e81d1cc854e81e648fa9129dbd4dd5f58c3c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 24 Mar 2016 16:34:09 +0100 Subject: Map4Orders: code reorder --- .../ch/asynk/rustanddust/game/map/Map4Orders.java | 38 +++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java index dae4e91..f9a02ac 100644 --- a/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java +++ b/core/src/ch/asynk/rustanddust/game/map/Map4Orders.java @@ -119,25 +119,6 @@ public abstract class Map4Orders extends Map3Animations return order; } - private void initMove(Unit unit) - { - activableUnits.remove(unit); - activatedUnits.add(unit); - playMoveSound(unit); - } - - private int doPromote(final Unit unit) - { - activatedUnits.add(unit); - addPromoteAnimation(unit, battle.getPlayer(), new Runnable() { - @Override - public void run() { - battle.getPlayer().promote(unit); - } - }); - return 1; - } - private int process(Order order) { RustAndDust.debug("Order", order.toString()); @@ -205,6 +186,25 @@ public abstract class Map4Orders extends Map3Animations return r; } + private void initMove(Unit unit) + { + activableUnits.remove(unit); + activatedUnits.add(unit); + playMoveSound(unit); + } + + private int doPromote(final Unit unit) + { + activatedUnits.add(unit); + addPromoteAnimation(unit, battle.getPlayer(), new Runnable() { + @Override + public void run() { + battle.getPlayer().promote(unit); + } + }); + return 1; + } + private int doEngagement(Engagement e) { resolveEngagement(e); -- cgit v1.1-2-g2b99