summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java
index 329505c..6482077 100644
--- a/core/src/ch/asynk/tankontank/game/Hud.java
+++ b/core/src/ch/asynk/tankontank/game/Hud.java
@@ -108,10 +108,18 @@ public class Hud implements Disposable
public void changeState(StateType from, StateType to)
{
+ if (to != StateType.ENTRY);
+ unitDock.hide();
+
+ if ((to == StateType.SELECT) || (to == StateType.ENTRY))
+ reinforcement.blocked = false;
+ else
+ reinforcement.blocked = true;
}
public void update()
{
+ unitDock.hide();
turns.write("" + ctrl.player.getTurn());
aps.write("" + ctrl.player.getAp());
int r = ctrl.player.getReinforcement().size();