-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfindPath.h
37 lines (31 loc) · 1.02 KB
/
findPath.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Benjy Berkowicz - 336182589
// Advanced Programming 2016-2017 Bar Ilan
//
#ifndef ADVANCED_EX2_BFSLOGIC_H
#define ADVANCED_EX2_BFSLOGIC_H
#include <stack>
#include <queue>
#include <vector>
#include "GridMap.h"
/**
* The bfsLogic class, given a generic gridmap, maps out a route from a destination to the end
* point. Note, that any type of GridMap would work, as generic operators are used to find
* the neighbours of any given point. However the GridMap MUST be comprised of gridsquare (or
* any inheritor that also contains the necessary fields).LL
*/
class findPath {
private:
std::vector<Point *> cleanup;
public:
/**
* Given a generic GridMap, route a path from the source point to the destination point and
* print it out.
* @param search the Grid to search
* @param source the source point
* @param destination the destination point
*/
std::vector<Point>* bfsRoute(GridMap* search, Point source, Point destination);
virtual ~findPath();
};
#endif //ADVANCED_EX2_BFSLOGIC_H