diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-15 17:37:34 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-15 17:37:34 +0100 |
commit | f90d63c3c686fd36bab40a30d856c7b003f06bb8 (patch) | |
tree | 0ca39b1a476654de2f9ea345ce466380ae235e89 /core | |
parent | 34b404cc8d58043ea63ce7daaad11c1e560ff7e1 (diff) | |
download | RustAndDust-f90d63c3c686fd36bab40a30d856c7b003f06bb8.zip RustAndDust-f90d63c3c686fd36bab40a30d856c7b003f06bb8.tar.gz |
StateEngange: set animation count end state after
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateEngage.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateEngage.java b/core/src/ch/asynk/tankontank/game/states/StateEngage.java index af461e8..55fcdaa 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateEngage.java +++ b/core/src/ch/asynk/tankontank/game/states/StateEngage.java @@ -61,7 +61,6 @@ public class StateEngage extends StateCommon ctrl.hud.notify(selectedUnit.engagement.calculus + " : " + activeUnit + " is destroyed"); ctrl.opponent.casualty(activeUnit); if (map.breakPawns.size() > 0) { - ctrl.hud.pushNotify("Break move possible"); nextState = StateType.BREAK; } } else { @@ -70,9 +69,9 @@ public class StateEngage extends StateCommon } activeUnit.showTarget(); - ctrl.setState(StateType.ANIMATION); - - return nextState; + ctrl.setAnimationCount(1); + ctrl.setAfterAnimationState(nextState); + return StateType.ANIMATION; } @Override |