summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-07-15 08:19:11 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-07-15 08:19:11 +0200
commitac78b25bb9ea8d66d84b8477bcce9510eb7555ba (patch)
tree11d7cec0a22ad6fe92df554cf95f4e3f9f71ae0c /core/src/ch/asynk/gdx/boardgame
parent047d76a4085fc3a032cd49872385ec0a5cffc225 (diff)
downloadgdx-boardgame-ac78b25bb9ea8d66d84b8477bcce9510eb7555ba.zip
gdx-boardgame-ac78b25bb9ea8d66d84b8477bcce9510eb7555ba.tar.gz
HexBoard : remove unused paramaterHEADmaster
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java8
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;