summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-01-21 14:10:53 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2020-01-21 14:10:53 +0100
commitdb2472e4a19945e87ce4ff599b94bcfd16e251ab (patch)
tree2c939bbfe116d44a1acaec222b87c9947815485c /core
parent2299c5f96340374cfb9f4cf25f731e02d02815b5 (diff)
downloadgdx-boardgame-db2472e4a19945e87ce4ff599b94bcfd16e251ab.zip
gdx-boardgame-db2472e4a19945e87ce4ff599b94bcfd16e251ab.tar.gz
Tile : add enableOverlay(int, Orientation)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Tile.java8
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 + "]";