summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame/Rotable.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame/Rotable.java')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Rotable.java1
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); }
}