summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame/Tile.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-06-01 22:26:29 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-06-01 22:26:29 +0200
commit9ecba43d731d21892a8985f0fe23e21c23c9bf87 (patch)
tree0c586d6a452b910f3918f528153b7c4cec963ad8 /core/src/ch/asynk/gdx/boardgame/Tile.java
parent842d1182857f7dd9ffc7f8bf6252100ae1199c06 (diff)
downloadgdx-boardgame-9ecba43d731d21892a8985f0fe23e21c23c9bf87.zip
gdx-boardgame-9ecba43d731d21892a8985f0fe23e21c23c9bf87.tar.gz
Board : implement lineOfSight for VERTICAL HexBoard
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame/Tile.java')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Tile.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Tile.java b/core/src/ch/asynk/gdx/boardgame/Tile.java
index 504a82d..36dcf32 100644
--- a/core/src/ch/asynk/gdx/boardgame/Tile.java
+++ b/core/src/ch/asynk/gdx/boardgame/Tile.java
@@ -14,6 +14,7 @@ public class Tile implements Drawable
public int y;
public float cx;
public float cy;
+ public boolean blocked;
private Overlays overlays;
public Tile(int x, int y, float cx, float cy)
@@ -22,11 +23,17 @@ public class Tile implements Drawable
this.y = y;
this.cx = cx;
this.cy = cy;
+ this.blocked = false;
if (defaultOverlay != null) {
setOverlay(defaultOverlay);
}
}
+ public boolean blockLos(final Tile from, final Tile to)
+ {
+ return false;
+ }
+
public boolean overlaysEnabled()
{
if (overlays != null) {