summaryrefslogtreecommitdiff
path: root/include/pathfinding.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-11 16:14:54 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-11 16:14:54 +0100
commit24af775b5041cbed67dfc84f3a0d67850a4b6a1b (patch)
tree8858ba5158aa7a4b78e12ecbd17b509afda3f9d7 /include/pathfinding.h
parent4933a7c038087ae465e588fafb392a57d7f92b87 (diff)
pathfinding
Diffstat (limited to 'include/pathfinding.h')
-rw-r--r--include/pathfinding.h23
1 files changed, 23 insertions, 0 deletions
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 <projectbase/project_base.h>
+
+#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