summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-13 09:59:31 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-13 09:59:31 +0200
commit33772e0d572f7efb99731257f84b295d33b01dfd (patch)
tree032c55994a638ea7df2344ca468ea0d7a0f618fa /core/src/ch/asynk/tankontank
parent37f772c26cd927d5ee903e46b2c35f71feeec142 (diff)
downloadRustAndDust-33772e0d572f7efb99731257f84b295d33b01dfd.zip
RustAndDust-33772e0d572f7efb99731257f84b295d33b01dfd.tar.gz
Map: add showAttackAssists(), isInPossibleAttackAssists()
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java11
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)