summaryrefslogtreecommitdiff
path: root/game/objective.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/objective.h')
-rw-r--r--game/objective.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/game/objective.h b/game/objective.h
new file mode 100644
index 0000000..e4fd6d4
--- /dev/null
+++ b/game/objective.h
@@ -0,0 +1,23 @@
+#ifndef OBJECTIVE_H
+#define OBJECTIVE_H
+
+#include "activity.h"
+#include <memory>
+#include <special_members.hpp>
+
+class Orders;
+
+class Objective {
+public:
+ explicit Objective(Orders * os) : orders(os) { }
+ DEFAULT_MOVE_COPY(Objective);
+ virtual ~Objective() = default;
+
+ [[nodiscard]] virtual Objective * complete() const;
+ [[nodiscard]] virtual ActivityPtr createActivity() const = 0;
+
+ Orders * orders;
+};
+using ObjectivePtr = std::unique_ptr<Objective>;
+
+#endif