diff options
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame/boards')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java | 5 | ||||
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/boards/SquareBoard.java | 3 | ||||
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/boards/TriangleBoard.java | 5 |
3 files changed, 8 insertions, 5 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java b/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java index 00704ef..688e1a0 100644 --- a/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java +++ b/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java @@ -38,8 +38,9 @@ public class HexBoard implements Board // bottom left is the left vertice of the most bottom-left horizontal hex side of the map // [0] is 0° facing East - private static final int [] vAngles = {60, 0, 60, -1, 120, 180, 240, -1, 300}; - private static final int [] hAngles = {90, -1, 30, 90, 150, -1, 210, 270, 330}; + // [8] is default + private static final int [] vAngles = {-90, -30, -1, 30, 90, 150, -1, 210, -30}; + private static final int [] hAngles = { -1, -60, 0, 60, -1, 120, 180, 240, -60}; public HexBoard(int cols, int rows, float side, float x0, float y0, BoardFactory.BoardOrientation boardOrientation) { diff --git a/core/src/ch/asynk/gdx/boardgame/boards/SquareBoard.java b/core/src/ch/asynk/gdx/boardgame/boards/SquareBoard.java index 7f5de42..7e381e9 100644 --- a/core/src/ch/asynk/gdx/boardgame/boards/SquareBoard.java +++ b/core/src/ch/asynk/gdx/boardgame/boards/SquareBoard.java @@ -11,7 +11,8 @@ public class SquareBoard implements Board private final float y0; // bottom left y offset // [0] is 0° facing East - private static final int [] angles = {90, 0, -1, 90, -1, 180, -1, 270, -1, 0}; + // [8] is default + private static final int [] angles = {0, -1, 90, -1, 180, -1, 270, -1, 0, 90}; public SquareBoard(int cols, int rows, float side, float x0, float y0) { diff --git a/core/src/ch/asynk/gdx/boardgame/boards/TriangleBoard.java b/core/src/ch/asynk/gdx/boardgame/boards/TriangleBoard.java index 4c9a013..2ea7237 100644 --- a/core/src/ch/asynk/gdx/boardgame/boards/TriangleBoard.java +++ b/core/src/ch/asynk/gdx/boardgame/boards/TriangleBoard.java @@ -19,8 +19,9 @@ public class TriangleBoard implements Board private final float h43; // 4/3 height of the triangle // [0] is 0° facing East - private static final int [] vAngles = {60, 0, 60, -1, 120, 180, 240, -1, 300}; - private static final int [] hAngles = {30, -1, 30, 90, 150, -1, 210, 270, 330}; + // [8] is default + private static final int [] vAngles = {-1, 30, 90, 150, -1, 210, 270, 330, 30}; + private static final int [] hAngles = { 0, 60, -1, 120, 180, 240, -1, 300, 60}; public TriangleBoard(int cols, int rows, float side, float x0, float y0, BoardFactory.BoardOrientation boardOrientation) { |