From 92bbeab96bf61edf9b7caa125ed67e634258383e Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sun, 26 Sep 2004 13:08:46 +0000 Subject: *** empty log message *** --- src/astar.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/astar.h (limited to 'src/astar.h') diff --git a/src/astar.h b/src/astar.h new file mode 100644 index 00000000..4a9fa045 --- /dev/null +++ b/src/astar.h @@ -0,0 +1,25 @@ +#ifdef WIN32 + #pragma warning (disable:4312) +#endif + +#include + +#include "map.h" +#include "being.h" + +#define NOT_STARTED 0 +#define FOUND 1 +#define NOT_FOUND 2 + +extern char walkability [MAP_WIDTH][MAP_HEIGHT]; +extern int whichList[MAP_WIDTH+1][MAP_HEIGHT+1]; +extern int G_cost[MAP_WIDTH+1][MAP_HEIGHT+1]; + +void ReadPath(int pathfinderID,int currentX,int currentY, int pixelsPerFrame); +int ReadPathX(int pathfinderID,int pathLocation); +int ReadPathY(int pathfinderID,int pathLocation); +void RenderScreen (bool stepByStep=false); +PATH_NODE *find_path(int pathfinderID,int startingX, int startingY, int targetX, int targetY); +void ReadPath(int pathfinderID); + + -- cgit v1.2.3-70-g09d2