diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/boards/Board.java | 5 |
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 020d12a..6d8d1b5 100644 --- a/core/src/ch/asynk/gdx/boardgame/boards/Board.java +++ b/core/src/ch/asynk/gdx/boardgame/boards/Board.java @@ -30,6 +30,11 @@ public interface Board extends TileKeyGenerator } public float distance(int x0, int y0, int x1, int y1, Geometry geometry); + default public float distance(int x0, int y0, int x1, int y1) + { + return distance(x0, y0, x1, y1, Geometry.EUCLIDEAN); + } + default public void dropInPlace(Piece piece, Vector2 v) { toBoard(piece.getCX(), piece.getCY(), v); |