aboutsummaryrefslogtreecommitdiff
path: root/path.h
blob: 5b7392b1524dc06fbd7603a8163f8a9d06e3b9e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef ASTAR_H_
#define ASTAR_H_

#include "structs.h"
#include "map.h"

Path breadth_first_search_path_4dir(Map map, size_t width, size_t height, Position start, Position end, char visited[height][width]);

Path astar_path_4dir(Map map, size_t width, size_t height, Position start, Position end);
size_t manhattan_distance(Position a, Position b);

#endif /* ASTAR_H_ */