summaryrefslogtreecommitdiff
path: root/game/worldobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/worldobject.h')
-rw-r--r--game/worldobject.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/game/worldobject.h b/game/worldobject.h
new file mode 100644
index 0000000..6c75b8a
--- /dev/null
+++ b/game/worldobject.h
@@ -0,0 +1,19 @@
+#ifndef WORLDOBJECT_H
+#define WORLDOBJECT_H
+
+#include <chrono>
+#include <special_members.hpp>
+
+class WorldObject {
+public:
+ using TickDuration = std::chrono::milliseconds;
+
+ WorldObject() = default;
+ virtual ~WorldObject() = default;
+ NO_COPY(WorldObject);
+ NO_MOVE(WorldObject);
+
+ virtual void tick(TickDuration elapsed) = 0;
+};
+
+#endif