summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Rotable.java1
-rw-r--r--core/src/ch/asynk/gdx/boardgame/pieces/Overlays.java5
2 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Rotable.java b/core/src/ch/asynk/gdx/boardgame/Rotable.java
index 789ce3d..e510e25 100644
--- a/core/src/ch/asynk/gdx/boardgame/Rotable.java
+++ b/core/src/ch/asynk/gdx/boardgame/Rotable.java
@@ -2,5 +2,6 @@ package ch.asynk.gdx.boardgame;
public interface Rotable
{
+ public float getRotation();
public void setRotation(float rotation);
}
diff --git a/core/src/ch/asynk/gdx/boardgame/pieces/Overlays.java b/core/src/ch/asynk/gdx/boardgame/pieces/Overlays.java
index 4907dde..864c778 100644
--- a/core/src/ch/asynk/gdx/boardgame/pieces/Overlays.java
+++ b/core/src/ch/asynk/gdx/boardgame/pieces/Overlays.java
@@ -76,6 +76,11 @@ public class Overlays implements Drawable, Positionable, Rotable, Scalable
}
}
+ @Override public float getRotation()
+ {
+ return sprites.get(0).getRotation();
+ }
+
@Override public void setRotation(float rotation)
{
for (Sprite sprite : sprites) {