diff options
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) |