summaryrefslogtreecommitdiff
path: root/src/astar.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-09-26 13:08:46 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-09-26 13:08:46 +0000
commit92bbeab96bf61edf9b7caa125ed67e634258383e (patch)
treea95dd426590c8e6208445290fa8b9b47c1a57bcb /src/astar.h
parente46b2cdbf205d3d2e17266e3168fdbecd5f53222 (diff)
downloadmana-92bbeab96bf61edf9b7caa125ed67e634258383e.tar.gz
mana-92bbeab96bf61edf9b7caa125ed67e634258383e.tar.bz2
mana-92bbeab96bf61edf9b7caa125ed67e634258383e.tar.xz
mana-92bbeab96bf61edf9b7caa125ed67e634258383e.zip
*** empty log message ***
Diffstat (limited to 'src/astar.h')
-rw-r--r--src/astar.h25
1 files changed, 25 insertions, 0 deletions
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 <allegro.h>
+
+#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);
+
+