From db2472e4a19945e87ce4ff599b94bcfd16e251ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 21 Jan 2020 14:10:53 +0100 Subject: Tile : add enableOverlay(int, Orientation) --- core/src/ch/asynk/gdx/boardgame/Tile.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/ch/asynk/gdx/boardgame/Tile.java b/core/src/ch/asynk/gdx/boardgame/Tile.java index d051cef..de53a4e 100644 --- a/core/src/ch/asynk/gdx/boardgame/Tile.java +++ b/core/src/ch/asynk/gdx/boardgame/Tile.java @@ -38,6 +38,14 @@ public class Tile implements Drawable } } + public void enableOverlay(int i, Orientation o) + { + if (overlays != null) { + overlays.setRotation(i, o.r()); + overlays.enable(i, true); + } + } + @Override public String toString() { return "[" + x + ", " + y + "]"; -- cgit v1.1-2-g2b99