summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/boards/Board.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/boards/Board.java b/core/src/ch/asynk/gdx/boardgame/boards/Board.java
index 6d8d1b5..8abfc34 100644
--- a/core/src/ch/asynk/gdx/boardgame/boards/Board.java
+++ b/core/src/ch/asynk/gdx/boardgame/boards/Board.java
@@ -22,6 +22,11 @@ public interface Board extends TileKeyGenerator
public boolean lineOfSight(int x0, int y0, int x1, int y1, Collection<Tile> tiles);
+ default public boolean lineOfSight(Tile from, Tile to, Collection<Tile> tiles)
+ {
+ return lineOfSight(from.x, from.y, to.x, to.y, tiles);
+ }
+
enum Geometry
{
EUCLIDEAN,