summaryrefslogtreecommitdiffstats
path: root/test/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-01-21 16:34:49 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2020-01-21 16:34:49 +0100
commit6c3a48e5bf3e9efa91995ecf5edf7fb0a1d2e2e6 (patch)
treec18d4d48370af3d44fd6a8c41159b598a5a160f3 /test/src/ch
parent7a6948222f59f23fe6326b15746f23e5b4ed823c (diff)
downloadgdx-boardgame-6c3a48e5bf3e9efa91995ecf5edf7fb0a1d2e2e6.zip
gdx-boardgame-6c3a48e5bf3e9efa91995ecf5edf7fb0a1d2e2e6.tar.gz
Board : add size() and getIdx(int, int)
Diffstat (limited to 'test/src/ch')
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java b/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java
index 37fdade..8bf1d50 100644
--- a/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java
+++ b/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java
@@ -57,7 +57,7 @@ public class BoardScreen extends AbstractScreen
public boolean touch(float x, float y)
{
board.toBoard(x, y, v);
- GdxBoardTest.debug("BoardScreen", String.format("touchDown [%d;%d] => [%d;%d]", (int)x, (int)y, (int)v.x, (int)v.y));
+ GdxBoardTest.debug("BoardScreen", String.format("touchDown [%d;%d] => [%d;%d] => %d", (int)x, (int)y, (int)v.x, (int)v.y, board.getIdx((int)v.x, (int)v.y)));
float d0 = board.distance((int)pos.x, (int)pos.y, (int)v.x, (int)v.y, Board.Geometry.TCHEBYCHEV);
float d1 = board.distance((int)pos.x, (int)pos.y, (int)v.x, (int)v.y, Board.Geometry.TAXICAB);
float d2 = board.distance((int)pos.x, (int)pos.y, (int)v.x, (int)v.y, Board.Geometry.EUCLIDEAN);