From c92e902364a3e7549f61ba5a29bf9c9fca429305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 17 Feb 2016 17:18:05 +0100 Subject: StateDeployment,Ctrl: call unitDeployed() { battle.actionDone(); } after each unit deployed --- core/src/ch/asynk/rustanddust/game/Ctrl.java | 5 +++++ core/src/ch/asynk/rustanddust/game/states/StateDeployment.java | 2 ++ 2 files changed, 7 insertions(+) diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index 4bedf83..7b96ae5 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -146,6 +146,11 @@ public abstract class Ctrl implements Disposable stateAfterAnimation = after; } + public void unitDeployed() + { + battle.actionDone(); + } + // Hud callbacks public void endGame() diff --git a/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java b/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java index 516c058..a209b87 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateDeployment.java @@ -125,5 +125,7 @@ public class StateDeployment extends StateCommon ctrl.hud.playerInfo.unitDock.show(); if (ctrl.battle.isDeploymentDone()) ctrl.hud.askEndDeployment(); + else + ctrl.unitDeployed(); } } -- cgit v1.1-2-g2b99