diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-23 17:05:54 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-23 17:05:54 +0100 |
commit | 591ede163eb28e6c74c584503050fda2a419e815 (patch) | |
tree | 5fd7b19e8e2fecef1fb017f190036d528b111876 /test/src/ch/asynk | |
parent | 416490c4382cfde163be376d978d7890da81bcd5 (diff) | |
download | gdx-boardgame-591ede163eb28e6c74c584503050fda2a419e815.zip gdx-boardgame-591ede163eb28e6c74c584503050fda2a419e815.tar.gz |
Board : extends TileKeyGenerator
Diffstat (limited to 'test/src/ch/asynk')
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java | 2 |
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 4fb9e6d..0714b8d 100644 --- a/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java +++ b/test/src/ch/asynk/gdx/boardgame/test/BoardScreen.java @@ -58,7 +58,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] => %d", (int)x, (int)y, (int)v.x, (int)v.y, board.getIdx((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.genKey((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); |