From 0676f408a404c7afef27225dd81b6a8c952c4a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 9 Jun 2020 04:08:23 +0200 Subject: HexScreen : code reorder, set move overlay Orientation --- test/src/ch/asynk/gdx/boardgame/test/HexScreen.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/src/ch/asynk/gdx/boardgame/test/HexScreen.java b/test/src/ch/asynk/gdx/boardgame/test/HexScreen.java index a2084a1..0a1494c 100644 --- a/test/src/ch/asynk/gdx/boardgame/test/HexScreen.java +++ b/test/src/ch/asynk/gdx/boardgame/test/HexScreen.java @@ -303,6 +303,11 @@ public class HexScreen extends AbstractScreen unit.setRotation(o.r()); } + private void touchInfo(Tile t) + { + GdxBoardTest.debug("BoardScreen", String.format("touchDown [%d;%d] => %s[%d]", t.x, t.y, t, board.genKey(t.x, t.y))); + } + public boolean touch(float x, float y, boolean down) { board.toBoard(x, y, v); @@ -327,11 +332,6 @@ public class HexScreen extends AbstractScreen return true; } - private void touchInfo(Tile t) - { - GdxBoardTest.debug("BoardScreen", String.format("touchDown [%d;%d] => %s[%d]", t.x, t.y, t, board.genKey(t.x, t.y))); - } - private void updateUnit(Tile t, Unit u) { touchInfo(t); @@ -344,7 +344,7 @@ public class HexScreen extends AbstractScreen for (Tile tile: losTiles) tile.disableOverlays(); for (Tile tile: moveTiles) tile.disableOverlays(); board.possibleMoves(u, t, moveTiles); - for (Tile tile: moveTiles) tile.enableOverlay(3, true); + for (Tile tile: moveTiles) tile.enableOverlay(3, Orientation.N); updateLine(); } -- cgit v1.1-2-g2b99