diff options
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateMove.java | 1 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateSelect.java | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java index 1aa91e3..d7d8dd6 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateMove.java +++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java @@ -144,6 +144,7 @@ public class StateMove extends StateCommon map.selectHex(hex); activeUnit.enableOverlay(Unit.MOVE, false); checkExit(activeUnit, hex); + ctrl.hud.notify(activeUnit.toString()); } private int collectPaths(Hex hex) diff --git a/core/src/ch/asynk/tankontank/game/states/StateSelect.java b/core/src/ch/asynk/tankontank/game/states/StateSelect.java index 7ce6251..d097e0f 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateSelect.java +++ b/core/src/ch/asynk/tankontank/game/states/StateSelect.java @@ -90,6 +90,7 @@ public class StateSelect extends StateCommon isEnemy = ctrl.player.isEnemy(unit); if (!isEnemy && (unit == selectedUnit)) { if (unit.isHq()) { + ctrl.hud.notify("HQ activation"); select(upHex, unit, isEnemy); ctrl.setState(StateType.MOVE); } else { @@ -99,6 +100,7 @@ public class StateSelect extends StateCommon } } else { select(upHex, unit, isEnemy); + ctrl.hud.notify(selectedUnit.toString()); } } @@ -118,7 +120,6 @@ public class StateSelect extends StateCommon showPossibilities(selectedUnit); ctrl.hud.actionButtons.show((ctrl.player.canPromote(selectedUnit)) ? Buttons.PROMOTE.b : 0 ); - ctrl.hud.notify(selectedUnit.toString()); TankOnTank.debug(" select " + selectedHex + selectedUnit + (isEnemy ? " enemy " : " friend ")); } } |