diff options
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame/Rotable.java')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/Rotable.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Rotable.java b/core/src/ch/asynk/gdx/boardgame/Rotable.java index e510e25..81ddea8 100644 --- a/core/src/ch/asynk/gdx/boardgame/Rotable.java +++ b/core/src/ch/asynk/gdx/boardgame/Rotable.java @@ -4,4 +4,5 @@ public interface Rotable { public float getRotation(); public void setRotation(float rotation); + default public void rotate(float r) { setRotation(getRotation() + r); } } |