aboutsummaryrefslogtreecommitdiff
path: root/BreadthFirstPathfinder.h
blob: 0c73c694c84107195daee4f6b0178c3d231ea570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <vector>

#include "Pathfinder.h"

class BreadthFirstPathfinder : public Pathfinder {
	using Pathfinder::Pathfinder;

public:
	virtual void find_between(const XY &, const XY &);
	virtual const Path & get_path();

private:
	Path solution;
	XY end;

	std::vector<Path> find_step(const std::vector<Path> &);

protected:
	virtual void clear();

};