summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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);
+ }
+}