summaryrefslogtreecommitdiff
path: root/game/orders.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-08 20:03:40 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-08 20:03:40 +0000
commita32a8447028798ef05af33230fbcfa3195ab430c (patch)
treeb311ea9623ac1816f48bdc1cd1f9a8f1d78091a4 /game/orders.h
parentShut up cppcheck, an STL implementation of that would be stupid (diff)
downloadilt-a32a8447028798ef05af33230fbcfa3195ab430c.tar.bz2
ilt-a32a8447028798ef05af33230fbcfa3195ab430c.tar.xz
ilt-a32a8447028798ef05af33230fbcfa3195ab430c.zip
Initial commit of the orders/activities system
Has the main window provide some control over our test train
Diffstat (limited to 'game/orders.h')
-rw-r--r--game/orders.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/game/orders.h b/game/orders.h
new file mode 100644
index 0000000..cd72767
--- /dev/null
+++ b/game/orders.h
@@ -0,0 +1,16 @@
+#ifndef ORDERS_H
+#define ORDERS_H
+
+#include <collection.hpp>
+#include <memory>
+
+class Objective;
+
+class Orders : public Collection<Objective> {
+public:
+ [[nodiscard]] Objective * current() const;
+ Objective * next();
+};
+using OrdersPtr = std::shared_ptr<Orders>;
+
+#endif