summaryrefslogtreecommitdiff
path: root/src/animation.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation.hh')
-rw-r--r--src/animation.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/animation.hh b/src/animation.hh
new file mode 100644
index 0000000..fb77142
--- /dev/null
+++ b/src/animation.hh
@@ -0,0 +1,17 @@
+#ifndef ANIMATION_HH
+#define ANIMATION_HH
+
+class Animation {
+public:
+ virtual ~Animation() {}
+
+ // Return true if animation is still active, value is always set
+ virtual bool tick(double duration, double* value) = 0;
+
+protected:
+ Animation() {}
+ Animation(Animation const&) = delete;
+ Animation& operator=(Animation const&) = delete;
+};
+
+#endif // ANIMATION_HH