From 24af775b5041cbed67dfc84f3a0d67850a4b6a1b Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 11 Dec 2022 16:14:54 +0100 Subject: pathfinding --- include/pathfinding.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/pathfinding.h (limited to 'include/pathfinding.h') diff --git a/include/pathfinding.h b/include/pathfinding.h new file mode 100644 index 0000000..2b38766 --- /dev/null +++ b/include/pathfinding.h @@ -0,0 +1,23 @@ +#ifndef INCLUDE_PATHFINDING +#define INCLUDE_PATHFINDING + +#include + +#include "players.h" +#include "objects.h" +#include "list.h" + +typedef struct t_pathfinding_request +{ + vec2f start; + vec2f end; + array *to_fill; + bool cancelled; + bool done; +} pathfinding_request; + +array global_pathfinding_queue; + +void make_pathfinding_request(vec2f start, vec2f end, array *to_fill, pathfinding_request *request); + +#endif \ No newline at end of file -- cgit v1.2.3-70-g09d2