summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-28 19:58:09 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-28 19:58:09 +0100
commitd85ff81508cc5296bc20dcad4d0bf22cf8323854 (patch)
treedfcd21a4b958e117c039e7a615e1ef5825d9953d /core/src/ch/asynk
parent79b4811452f6a53509e6ffe5b1f6e4f266c4a8f8 (diff)
downloadRustAndDust-d85ff81508cc5296bc20dcad4d0bf22cf8323854.zip
RustAndDust-d85ff81508cc5296bc20dcad4d0bf22cf8323854.tar.gz
StateMove,StateSelect: fix notifications
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateMove.java1
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateSelect.java3
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 "));
}
}