From 2299c5f96340374cfb9f4cf25f731e02d02815b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 21 Jan 2020 14:08:47 +0100 Subject: Overlays : add setRotation(int, float) --- core/src/ch/asynk/gdx/boardgame/Overlays.java | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- cgit v1.1-2-g2b99