diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-15 08:19:11 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-15 08:19:11 +0200 |
commit | ac78b25bb9ea8d66d84b8477bcce9510eb7555ba (patch) | |
tree | 11d7cec0a22ad6fe92df554cf95f4e3f9f71ae0c /core/src/ch/asynk | |
parent | 047d76a4085fc3a032cd49872385ec0a5cffc225 (diff) | |
download | gdx-boardgame-master.zip gdx-boardgame-master.tar.gz |
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java b/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java index 2ea1e39..ea01cfe 100644 --- a/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java +++ b/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java @@ -340,7 +340,7 @@ public class HexBoard implements Board if (losBlocked && !contact) { final Tile prev = tiles.get(tiles.size() - 1); Orientation o = Orientation.fromTiles(prev, t); - computeContact(from, to, prev, o, v, true); + computeContact(from, to, prev, o, v); contact = true; } tiles.add(t); @@ -412,9 +412,9 @@ public class HexBoard implements Board if (t.blocked && !contact) { Orientation o = computeOrientation(dx, dy, flat); if (!losBlocked && blocked == 0x03) { - computeContact(from, to, t, o.opposite(), v, false); + computeContact(from, to, t, o.opposite(), v); } else { - computeContact(from, to, tiles.get(tiles.size() - idx), o, v, false); + computeContact(from, to, tiles.get(tiles.size() - idx), o, v); } contact = true; } @@ -445,7 +445,7 @@ public class HexBoard implements Board } } - private void computeContact(Tile from, Tile to, Tile t, Orientation o, Vector2 v, boolean line) + private void computeContact(Tile from, Tile to, Tile t, Orientation o, Vector2 v) { float dx = to.cx - from.cx; float dy = to.cy - from.cy; |