From b0ea77774e60f03126499aad8e5234b8fd6f12da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 8 Oct 2014 11:18:24 +0200 Subject: GameStateCommon: add showPossibleTargetsMovesAssists(boolean) --- core/src/ch/asynk/tankontank/game/states/GameStateCommon.java | 7 +++++++ 1 file changed, 7 insertions(+) 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); + } } -- cgit v1.1-2-g2b99