summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/GameStateCommon.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
index 74fff8f..8c52b83 100644
--- a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
+++ b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
@@ -89,4 +89,11 @@ public abstract class GameStateCommon implements GameState
{
return ((a.x == b.x) && (a.y == b.y));
}
+
+ protected void showPossibleTargetsMovesAssists(boolean enable)
+ {
+ if (ctrl.cfg.showMoves) map.enablePossibleMoves(enable);
+ if (ctrl.cfg.showTargets) map.enablePossibleTargets(enable);
+ if (ctrl.cfg.showMoveAssists) map.enableMoveAssists(enable);
+ }
}