diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-28 18:33:48 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-28 18:33:48 +0100 |
commit | c7244e3cb3b74c2b31c5680aca1a3e8292e2bf4c (patch) | |
tree | 1d7312c683428922ea26f82a75e6839c8c81af51 /core/src | |
parent | d8c9dc3bd7e91cfe80a921665c7364a2f6d3054b (diff) | |
download | RustAndDust-c7244e3cb3b74c2b31c5680aca1a3e8292e2bf4c.zip RustAndDust-c7244e3cb3b74c2b31c5680aca1a3e8292e2bf4c.tar.gz |
StateMove: self select -> ROTATE
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateMove.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateMove.java b/core/src/ch/asynk/tankontank/game/states/StateMove.java index f7103a8..1aa91e3 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateMove.java +++ b/core/src/ch/asynk/tankontank/game/states/StateMove.java @@ -99,6 +99,11 @@ public class StateMove extends StateCommon @Override public void touchUp() { + if (upHex == activeUnit.getHex()) { + ctrl.setState(StateType.ROTATE); + return; + } + int s = map.possiblePaths.size(); Unit unit = upHex.getUnit(); |