From a32a8447028798ef05af33230fbcfa3195ab430c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 8 Mar 2021 20:03:40 +0000 Subject: Initial commit of the orders/activities system Has the main window provide some control over our test train --- game/objective.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 game/objective.h (limited to 'game/objective.h') 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 +#include + +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; + +#endif -- cgit v1.2.3