diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-13 09:59:31 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-13 09:59:31 +0200 |
commit | 33772e0d572f7efb99731257f84b295d33b01dfd (patch) | |
tree | 032c55994a638ea7df2344ca468ea0d7a0f618fa /core/src/ch/asynk/tankontank/game | |
parent | 37f772c26cd927d5ee903e46b2c35f71feeec142 (diff) | |
download | RustAndDust-33772e0d572f7efb99731257f84b295d33b01dfd.zip RustAndDust-33772e0d572f7efb99731257f84b295d33b01dfd.tar.gz |
Map: add showAttackAssists(), isInPossibleAttackAssists()
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index d98d1b5..31dbbf0 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -93,6 +93,11 @@ public abstract class Map extends Board return moveAssists.contains(hex); } + public boolean isInPossibleAttackAssists(GridPoint2 hex) + { + return attackAssists.contains(hex); + } + public boolean isInPossiblePaths(GridPoint2 hex) { return possiblePaths.contains(hex); @@ -115,6 +120,12 @@ public abstract class Map extends Board enableOverlayOn(hex, Hex.ASSIST, enable); } + public void showAttackAssists(boolean enable) + { + for(GridPoint2 hex : attackAssists) + enableOverlayOn(hex, Hex.ASSIST, enable); + } + public void showPossibleTargets(boolean enable) { for(GridPoint2 hex : possibleTargets) |