2010-08-08 10:06:34 +02:00
|
|
|
#ifndef H_KRNL_PATHFINDER
|
|
|
|
#define H_KRNL_PATHFINDER
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-04-28 15:57:51 +02:00
|
|
|
extern struct region **path_find(struct region *handle_start,
|
2015-01-30 20:37:14 +01:00
|
|
|
const struct region *target, int maxlen,
|
|
|
|
bool(*allowed) (const struct region *, const struct region *));
|
2018-04-28 15:57:51 +02:00
|
|
|
extern bool path_exists(struct region *handle_start, const struct region *target,
|
2020-07-25 20:31:15 +02:00
|
|
|
int maxlen, bool(*allowed) (const struct region *, const struct region *));
|
|
|
|
extern bool allowed_fly(const struct region *src, const struct region *target);
|
|
|
|
extern bool allowed_walk(const struct region *src, const struct region *target);
|
|
|
|
extern struct selist *path_regions_in_range(struct region *src, int maxdist,
|
2015-01-30 20:37:14 +01:00
|
|
|
bool(*allowed) (const struct region *, const struct region *));
|
|
|
|
|
|
|
|
extern void pathfinder_cleanup(void);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|