diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-06-09 04:08:23 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-06-09 04:08:23 +0200 |
commit | 0676f408a404c7afef27225dd81b6a8c952c4a98 (patch) | |
tree | 59fe4eb3a3d0220a3a7e22018f08664b99149c0c /test/src/ch/asynk | |
parent | b6e5eb1ffe1eade20ecd6e612ad3f12c866133eb (diff) | |
download | gdx-boardgame-0676f408a404c7afef27225dd81b6a8c952c4a98.zip gdx-boardgame-0676f408a404c7afef27225dd81b6a8c952c4a98.tar.gz |
HexScreen : code reorder, set move overlay Orientation
Diffstat (limited to 'test/src/ch/asynk')
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/HexScreen.java | 12 |
1 files 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(); } |