X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=include%2Fpath.h;h=d1f2d4e5c1bcd2e93657a3a393572d8bf353b9ee;hp=e0ce6fce231fe20aa3d5b204be5cff14126cd4b4;hb=d8bef8e80603678ebf0d13bf64680b1769c210ef;hpb=fc0c65864653c4af0220537ddb71d24aa6088de0 diff --git a/include/path.h b/include/path.h index e0ce6fce2..d1f2d4e5c 100644 --- a/include/path.h +++ b/include/path.h @@ -27,12 +27,13 @@ * path.h: Definitions for directions, paths, etc. * * Known contributors to this file: - * + * Markus Armbruster, 2005-2011 */ #ifndef PATH_H #define PATH_H +#include #include "types.h" /* direction indices */ @@ -51,6 +52,8 @@ #define MOB_MOVE 0 #define MOB_MARCH 1 #define MOB_RAIL 2 +#define MOB_SAIL 3 +#define MOB_FLY 4 enum p_mode { /* How to find path to destination */ P_NONE, /* don't */ @@ -67,6 +70,20 @@ extern char *routech[DIR_LAST+1]; /* src/lib/common/bestpath.c */ extern char *bestownedpath(char *, char *, int, int, int, int, int); +/* src/lib/common/findpath.c */ +extern void path_find_from(coord, coord, natid, int); +extern double path_find_to(coord, coord); +extern double path_find(coord, coord, coord, coord, natid, int); +extern size_t path_find_route(char *, size_t, coord, coord, coord, coord); +#ifdef PATH_FIND_DEBUG +extern void path_find_visualize(coord, coord, coord, coord); +#endif +#ifdef PATH_FIND_STATS +extern void path_find_print_stats(void); +#else +#define path_find_print_stats() ((void)0) +#endif + /* src/lib/common/path.c */ extern void bp_enable_cachepath(void); extern void bp_disable_cachepath(void);