diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-21 14:08:47 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-01-21 14:08:47 +0100 |
commit | 2299c5f96340374cfb9f4cf25f731e02d02815b5 (patch) | |
tree | ef7ccee32066b8aec7e4cd372316a85bbb8b39ec | |
parent | d96cbcff5251ec3d4a92e45e701af9195032c517 (diff) | |
download | gdx-boardgame-2299c5f96340374cfb9f4cf25f731e02d02815b5.zip gdx-boardgame-2299c5f96340374cfb9f4cf25f731e02d02815b5.tar.gz |
Overlays : add setRotation(int, float)
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/Overlays.java | 5 |
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(); |