diff options
Diffstat (limited to 'include/pathfinding.h')
| -rw-r--r-- | include/pathfinding.h | 23 |
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 |
