diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-10-11 15:03:13 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-10-11 15:03:13 +0200 |
commit | bf2c979fb10485032aa52ebc1ab9b6f5fd690100 (patch) | |
tree | 6d9b04c080739c02548497274e9a98b5f6f107df /core/src/ch/asynk/gdx | |
parent | eb40773ef03b3582ce1ba2b07fb8f50ced2a4807 (diff) | |
download | gdx-boardgame-bf2c979fb10485032aa52ebc1ab9b6f5fd690100.zip gdx-boardgame-bf2c979fb10485032aa52ebc1ab9b6f5fd690100.tar.gz |
Rotable : add float getRotation()
Diffstat (limited to 'core/src/ch/asynk/gdx')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/Rotable.java | 1 | ||||
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/pieces/Overlays.java | 5 |
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) { |