summaryrefslogtreecommitdiffstats
path: root/engine/include/flatactor.h
diff options
context:
space:
mode:
Diffstat (limited to 'engine/include/flatactor.h')
-rw-r--r--engine/include/flatactor.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/engine/include/flatactor.h b/engine/include/flatactor.h
new file mode 100644
index 0000000..2c8b92d
--- /dev/null
+++ b/engine/include/flatactor.h
@@ -0,0 +1,36 @@
+#ifndef __FLATACTOR_H__
+#define __FLATACTOR_H__
+
+#include "flatcollector.h"
+
+struct task_s;
+
+class FlatActor : public FlatCollector
+{
+ task_s * task;
+
+ // TODO, event binding
+ // TODO, serial binding
+
+public:
+
+ FlatActor(FlatCollector *parent = 0, bool evolving = false);
+
+ virtual ~FlatActor();
+
+ /* Evolution fields */
+
+ void evolve_task(void*);
+
+ virtual void evolve(float dt);
+
+ void setEvolving(bool flag);
+
+ bool isEvolving() const;
+
+ /* Surface fields */
+
+ virtual SDL_Surface * sdl_surface() = 0;
+};
+
+#endif