diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-20 09:45:08 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-20 09:45:08 +0100 |
commit | 38573f8b055e10497b75356cbee35fd7df75e90f (patch) | |
tree | 2d433b29508f6ef47ddab483744aa3ff5a928e14 /core | |
parent | ae0e7d1c1c03eceeba145a47d96c87d87df32fc5 (diff) | |
download | RustAndDust-38573f8b055e10497b75356cbee35fd7df75e90f.zip RustAndDust-38573f8b055e10497b75356cbee35fd7df75e90f.tar.gz |
Ctrl: block EndOfTurn except in SELECT state
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Ctrl.java | 1 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateDeployment.java | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java index 82ba7f1..79008f4 100644 --- a/core/src/ch/asynk/tankontank/game/Ctrl.java +++ b/core/src/ch/asynk/tankontank/game/Ctrl.java @@ -202,6 +202,7 @@ public class Ctrl implements Disposable if (stateType == StateType.ANIMATION) { this.blockMap = hud.dialogActive(); } + hud.playerInfo.blockEndOfTurn(stateType == StateType.SELECT); this.state.leave(nextState); diff --git a/core/src/ch/asynk/tankontank/game/states/StateDeployment.java b/core/src/ch/asynk/tankontank/game/states/StateDeployment.java index 6129631..3fd9aa5 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateDeployment.java +++ b/core/src/ch/asynk/tankontank/game/states/StateDeployment.java @@ -26,7 +26,6 @@ public class StateDeployment extends StateCommon selectedUnit = null; ctrl.hud.actionButtons.hide(); ctrl.hud.playerInfo.unitDock.show(); - ctrl.hud.playerInfo.blockEndOfTurn(true); } @Override @@ -38,7 +37,6 @@ public class StateDeployment extends StateCommon if (entryZone != null) entryZone.enable(Hex.AREA, false); ctrl.hud.playerInfo.unitDock.hide(); - ctrl.hud.playerInfo.blockEndOfTurn(false); } @Override |