From d39c6dd18248927044d2f75cefd2ed8ba12eb3b7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 9 Mar 2021 01:21:46 +0000 Subject: Make objectives responsible for navigation --- game/objectives/freeroam.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'game/objectives/freeroam.h') 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 +#include +#include class FreeRoam : public Objective { public: using Objective::Objective; - [[nodiscard]] ActivityPtr - createActivity() const override - { - return std::make_unique(); - } + [[nodiscard]] ActivityPtr createActivity() const override; + [[nodiscard]] Link::Next navigate(Link::Nexts::const_iterator, Link::Nexts::const_iterator) const override; }; #endif -- cgit v1.2.3