summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-10-11 15:03:13 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-10-11 15:03:13 +0200
commitbf2c979fb10485032aa52ebc1ab9b6f5fd690100 (patch)
tree6d9b04c080739c02548497274e9a98b5f6f107df /core/src/ch
parenteb40773ef03b3582ce1ba2b07fb8f50ced2a4807 (diff)
downloadgdx-boardgame-bf2c979fb10485032aa52ebc1ab9b6f5fd690100.zip
gdx-boardgame-bf2c979fb10485032aa52ebc1ab9b6f5fd690100.tar.gz
Rotable : add float getRotation()
Diffstat (limited to 'core/src/ch')
-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) {