summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/states
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-10 17:47:59 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-10 17:47:59 +0100
commit5b931b7b040be1b3b156737dd7c183a429f15074 (patch)
tree0c2e910b61830606d5a034dba0b5669777bbbce8 /core/src/ch/asynk/tankontank/game/states
parent41a64b633e34336a5c95a46b56fa3648407e1e77 (diff)
downloadRustAndDust-5b931b7b040be1b3b156737dd7c183a429f15074.zip
RustAndDust-5b931b7b040be1b3b156737dd7c183a429f15074.tar.gz
Hud: use PlayerInfo
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/states')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateEntry.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateEntry.java b/core/src/ch/asynk/tankontank/game/states/StateEntry.java
index d166a69..21dc3f5 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateEntry.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateEntry.java
@@ -17,7 +17,7 @@ public class StateEntry extends StateCommon
@Override
public void enter(boolean fromSelect)
{
- activeUnit = ctrl.hud.getDockUnit();
+ activeUnit = ctrl.hud.playerInfo.getDockUnit();
entryPoint = ctrl.battle.getEntryPoint(activeUnit);
entryPoint.enable(Hex.AREA, true);
ctrl.hud.actionButtons.show(((ctrl.cfg.canCancel) ? Buttons.ABORT.b : 0));
@@ -30,7 +30,7 @@ public class StateEntry extends StateCommon
public void leave(StateType nextState)
{
entryPoint.enable(Hex.AREA, false);
- ctrl.hud.hideUnitDock();
+ ctrl.hud.playerInfo.hideUnitDock();
}
@Override