summaryrefslogtreecommitdiff
path: root/game/objectives/goto.h
blob: ad51ecfec544069653aecfa596b7555aa55f3308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <game/activity.h>
#include <game/network/link.h>
#include <game/objective.h>

class Orders;

class GoTo : public Objective {
public:
	GoTo(Orders * os, const Link::End &, float, const Node::Ptr & dest);

	[[nodiscard]] ActivityPtr createActivity() const override;
	[[nodiscard]] Link::Next navigate(Link::Nexts::const_iterator, Link::Nexts::const_iterator) const override;

private:
	Link::Nexts links;
	float startDist;
};