summaryrefslogtreecommitdiff
path: root/game/objectives/goto.h
blob: 01e47aefb08398ab6bacb31f3c3f182a966b9123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef GOTO_H
#define GOTO_H

#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 NodePtr & 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;
};

#endif