summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-08 11:18:24 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-08 11:18:24 +0200
commitb0ea77774e60f03126499aad8e5234b8fd6f12da (patch)
tree55f93f456aaffeb66eae45e6b3864e269695a6dc
parent88af47e269674b53a54a25313639ed76b57896e6 (diff)
downloadRustAndDust-b0ea77774e60f03126499aad8e5234b8fd6f12da.zip
RustAndDust-b0ea77774e60f03126499aad8e5234b8fd6f12da.tar.gz
GameStateCommon: add showPossibleTargetsMovesAssists(boolean)
-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);
+ }
}