diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/GameStateMove.java | 1 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/GameStateRotate.java | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/GameStateMove.java b/core/src/ch/asynk/tankontank/game/states/GameStateMove.java index 2e05e89..f99dc75 100644 --- a/core/src/ch/asynk/tankontank/game/states/GameStateMove.java +++ b/core/src/ch/asynk/tankontank/game/states/GameStateMove.java @@ -14,6 +14,7 @@ public class GameStateMove extends GameStateCommon map.enablePossibleTargets(false); map.enablePossiblePaths(false, false); if (pawn != null) { + // FIXME must be one of it's own skipFirst = false; map.clearPossiblePaths(); map.buildAndShowPossibleMoves(pawn, hex); diff --git a/core/src/ch/asynk/tankontank/game/states/GameStateRotate.java b/core/src/ch/asynk/tankontank/game/states/GameStateRotate.java index 0a24b35..14fd2a8 100644 --- a/core/src/ch/asynk/tankontank/game/states/GameStateRotate.java +++ b/core/src/ch/asynk/tankontank/game/states/GameStateRotate.java @@ -5,12 +5,21 @@ import ch.asynk.tankontank.engine.Orientation; public class GameStateRotate extends GameStateCommon { @Override + public void enter() + { + map.hidePossibles(); + if (pawn != null) { + // FIXME must be one of it's own + map.enableDirections(hex, true); + } + } + + @Override public void touchDown() { if (pawn == null) { super.touchDown(); if (hexHasUnit()) { - // TODO maybe keep the the previous hex // FIXME must be one of it's own setPawn(); map.enableDirections(hex, true); |