summaryrefslogtreecommitdiff
path: root/game/objective.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-09 01:21:46 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-09 01:21:46 +0000
commitd39c6dd18248927044d2f75cefd2ed8ba12eb3b7 (patch)
tree49f165919282a3791d2545d2f18aaf9549586e95 /game/objective.h
parentSplit ActivityOf<> into its own file (diff)
downloadilt-d39c6dd18248927044d2f75cefd2ed8ba12eb3b7.tar.bz2
ilt-d39c6dd18248927044d2f75cefd2ed8ba12eb3b7.tar.xz
ilt-d39c6dd18248927044d2f75cefd2ed8ba12eb3b7.zip
Make objectives responsible for navigation
Diffstat (limited to 'game/objective.h')
-rw-r--r--game/objective.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/objective.h b/game/objective.h
index e4fd6d4..5b3690e 100644
--- a/game/objective.h
+++ b/game/objective.h
@@ -2,6 +2,7 @@
#define OBJECTIVE_H
#include "activity.h"
+#include "network/link.h"
#include <memory>
#include <special_members.hpp>
@@ -15,6 +16,7 @@ public:
[[nodiscard]] virtual Objective * complete() const;
[[nodiscard]] virtual ActivityPtr createActivity() const = 0;
+ [[nodiscard]] virtual Link::Next navigate(Link::Nexts::const_iterator, Link::Nexts::const_iterator) const = 0;
Orders * orders;
};