summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-10-13 21:33:13 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-10-13 21:33:13 +0200
commit2c0fdc322557a9d91c694e2a45e1b7a1addc765f (patch)
tree3bfcb2bcd5f17c274776ec765810137cfb3f803b /core/src
parentc34e49dbf0155ad89579d8df45a717aeef8adb2e (diff)
downloadgdx-boardgame-2c0fdc322557a9d91c694e2a45e1b7a1addc765f.zip
gdx-boardgame-2c0fdc322557a9d91c694e2a45e1b7a1addc765f.tar.gz
add DelayAnimation
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/animations/DelayAnimation.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/animations/DelayAnimation.java b/core/src/ch/asynk/gdx/boardgame/animations/DelayAnimation.java
new file mode 100644
index 0000000..8baa9b1
--- /dev/null
+++ b/core/src/ch/asynk/gdx/boardgame/animations/DelayAnimation.java
@@ -0,0 +1,26 @@
+package ch.asynk.gdx.boardgame.animations;
+
+import com.badlogic.gdx.graphics.g2d.Batch;
+
+import ch.asynk.gdx.boardgame.Drawable;
+
+public class DelayAnimation extends TimedAnimation
+{
+ private Drawable drawable;
+
+ public DelayAnimation(Drawable drawable, float duration)
+ {
+ this.drawable = drawable;
+ setDuration(duration);
+ }
+
+ @Override protected void begin() { }
+ @Override protected void end() { }
+ @Override protected void update(float percent) { }
+ @Override public void dispose() { }
+
+ @Override public void draw(Batch batch)
+ {
+ drawable.draw(batch);
+ }
+}