summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-06-09 04:08:23 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-06-09 04:08:23 +0200
commit0676f408a404c7afef27225dd81b6a8c952c4a98 (patch)
tree59fe4eb3a3d0220a3a7e22018f08664b99149c0c
parentb6e5eb1ffe1eade20ecd6e612ad3f12c866133eb (diff)
downloadgdx-boardgame-0676f408a404c7afef27225dd81b6a8c952c4a98.zip
gdx-boardgame-0676f408a404c7afef27225dd81b6a8c952c4a98.tar.gz
HexScreen : code reorder, set move overlay Orientation
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/HexScreen.java12
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();
}