summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game/states
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-01 18:30:03 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-01 18:30:03 +0100
commitf8ce9bff9796a912a63d8c513a351f6c116883f5 (patch)
tree6b8cdfd2b86d865ee58c3979b63e2c1a22e38e04 /core/src/ch/asynk/tankontank/game/states
parent521b33232bba647b205e6f3b09af38b0b3153389 (diff)
downloadRustAndDust-f8ce9bff9796a912a63d8c513a351f6c116883f5.zip
RustAndDust-f8ce9bff9796a912a63d8c513a351f6c116883f5.tar.gz
Hup,StateAttack: support and use Msg.pushWrite(...)
Diffstat (limited to 'core/src/ch/asynk/tankontank/game/states')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateAttack.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateAttack.java b/core/src/ch/asynk/tankontank/game/states/StateAttack.java
index 90112c7..cba908f 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateAttack.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateAttack.java
@@ -87,8 +87,10 @@ public class StateAttack extends StateCommon
if (map.attackPawn(selectedUnit, activeUnit, d1, d2)) {
ctrl.hud.notify(selectedUnit.attack.calculus + " : " + activeUnit + " is destroyed");
ctrl.opponent.casualty(activeUnit);
- if (map.breakPawns.size() > 0)
+ if (map.breakPawns.size() > 0) {
+ ctrl.hud.pushNotify("Break move possible");
setNextState(StateType.BREAK);
+ }
} else
ctrl.hud.notify(selectedUnit.attack.calculus + " : failure");