summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-01-21 14:08:47 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2020-01-21 14:08:47 +0100
commit2299c5f96340374cfb9f4cf25f731e02d02815b5 (patch)
treeef7ccee32066b8aec7e4cd372316a85bbb8b39ec /core/src/ch/asynk/gdx/boardgame
parentd96cbcff5251ec3d4a92e45e701af9195032c517 (diff)
downloadgdx-boardgame-2299c5f96340374cfb9f4cf25f731e02d02815b5.zip
gdx-boardgame-2299c5f96340374cfb9f4cf25f731e02d02815b5.tar.gz
Overlays : add setRotation(int, float)
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Overlays.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Overlays.java b/core/src/ch/asynk/gdx/boardgame/Overlays.java
index 5746630..9281533 100644
--- a/core/src/ch/asynk/gdx/boardgame/Overlays.java
+++ b/core/src/ch/asynk/gdx/boardgame/Overlays.java
@@ -93,6 +93,11 @@ public class Overlays implements Drawable, Positionable, Rotable, Scalable
}
}
+ public void setRotation(int idx, float rotation)
+ {
+ sprites.get(idx).setRotation(rotation);
+ }
+
@Override public float getScale()
{
return sprites.get(0).getScaleX();