diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-08 11:18:24 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-08 11:18:24 +0200 |
commit | b0ea77774e60f03126499aad8e5234b8fd6f12da (patch) | |
tree | 55f93f456aaffeb66eae45e6b3864e269695a6dc /core | |
parent | 88af47e269674b53a54a25313639ed76b57896e6 (diff) | |
download | RustAndDust-b0ea77774e60f03126499aad8e5234b8fd6f12da.zip RustAndDust-b0ea77774e60f03126499aad8e5234b8fd6f12da.tar.gz |
GameStateCommon: add showPossibleTargetsMovesAssists(boolean)
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/GameStateCommon.java | 7 |
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); + } } |