diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-10-29 15:38:25 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-10-29 15:38:25 +0100 |
commit | a3ec9e5ff30ff657597b2c746733fc0ac97fc805 (patch) | |
tree | 8763790030e1573811e06fb122ba8f5fcdb32575 /core/src/ch/asynk | |
parent | cca3699fa58a9fd12fa9a3d3957458c6d3a93ec2 (diff) | |
download | RustAndDust-a3ec9e5ff30ff657597b2c746733fc0ac97fc805.zip RustAndDust-a3ec9e5ff30ff657597b2c746733fc0ac97fc805.tar.gz |
SearchBoard : add buildLineOfSight(...) needed for tests
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/SearchBoard.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/SearchBoard.java b/core/src/ch/asynk/rustanddust/engine/SearchBoard.java index f869e32..6a1e6bb 100644 --- a/core/src/ch/asynk/rustanddust/engine/SearchBoard.java +++ b/core/src/ch/asynk/rustanddust/engine/SearchBoard.java @@ -260,6 +260,12 @@ public class SearchBoard a[5] = null; } + public List<Node> buildLineOfSight(int x0, int y0, int x1, int y1, boolean clearVisibility) + { + lineOfSight(x0, y0, x1, y1, clearVisibility); + return los; + } + public int possibleTargetsFrom(Pawn shooter, Collection<Pawn> targets) { targets.clear(); |