summaryrefslogtreecommitdiff
path: root/game/objectives/freeroam.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/objectives/freeroam.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/objectives/freeroam.h')
-rw-r--r--game/objectives/freeroam.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/game/objectives/freeroam.h b/game/objectives/freeroam.h
index c97d9b4..2cfdcfc 100644
--- a/game/objectives/freeroam.h
+++ b/game/objectives/freeroam.h
@@ -1,18 +1,16 @@
#ifndef FREEROAM_H
#define FREEROAM_H
-#include "game/activities/go.h"
-#include "game/objective.h"
+#include <game/activity.h>
+#include <game/network/link.h>
+#include <game/objective.h>
class FreeRoam : public Objective {
public:
using Objective::Objective;
- [[nodiscard]] ActivityPtr
- createActivity() const override
- {
- return std::make_unique<Go>();
- }
+ [[nodiscard]] ActivityPtr createActivity() const override;
+ [[nodiscard]] Link::Next navigate(Link::Nexts::const_iterator, Link::Nexts::const_iterator) const override;
};
#endif