diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-21 14:10:53 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-21 14:10:53 +0100 |
commit | db2472e4a19945e87ce4ff599b94bcfd16e251ab (patch) | |
tree | 2c939bbfe116d44a1acaec222b87c9947815485c /core/src | |
parent | 2299c5f96340374cfb9f4cf25f731e02d02815b5 (diff) | |
download | gdx-boardgame-db2472e4a19945e87ce4ff599b94bcfd16e251ab.zip gdx-boardgame-db2472e4a19945e87ce4ff599b94bcfd16e251ab.tar.gz |
Tile : add enableOverlay(int, Orientation)
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/Tile.java | 8 |
1 files changed, 8 insertions, 0 deletions
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 + "]"; |