summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame/Rotable.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-01-24 16:31:55 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2020-01-24 16:31:55 +0100
commitcf4ef8c2353c7deca4c4948e35ff614e3f7e2e4d (patch)
tree7eb285fc32581d62bdac5cb32b30f337c5da2199 /core/src/ch/asynk/gdx/boardgame/Rotable.java
parent014a54029600db4d72f08aef8ac9457f4260c562 (diff)
downloadgdx-boardgame-cf4ef8c2353c7deca4c4948e35ff614e3f7e2e4d.zip
gdx-boardgame-cf4ef8c2353c7deca4c4948e35ff614e3f7e2e4d.tar.gz
Piece : is not a Sprite, use composition
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); }
}