diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-25 22:48:14 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-25 22:48:27 +0200 |
commit | 1385a0c70cc5a584dcbd070c1fb98c9175612212 (patch) | |
tree | 02b71b56b87a7a9c66170a210577be645274c817 /core | |
parent | 4fa6f2f67942124bba185ce420d5c0362c049e08 (diff) | |
download | RustAndDust-1385a0c70cc5a584dcbd070c1fb98c9175612212.zip RustAndDust-1385a0c70cc5a584dcbd070c1fb98c9175612212.tar.gz |
Map: add openToAttackFrom() test
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index b7ee78e..a656c20 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -67,6 +67,8 @@ public abstract class Map extends Board if (pawn == null) return; for(GridPoint2 hex : reachableFrom(pawn, currentHex.x, currentHex.y)) enableOverlayOn(hex.x, hex.y, Hex.GREEN, true); + for(GridPoint2 hex : openToAttackFrom(pawn, currentHex.x, currentHex.y)) + enableOverlayOn(hex.x, hex.y, Hex.RED, true); } private void debugMap() |