summaryrefslogblamecommitdiff
path: root/src/astar.h
blob: e5cc380975a123f96dbb848a3024053bbd42ea12 (plain) (tree)
1
2
3
4
5
6
7


                



                                

















                                                                                              
      
#ifndef _ASTAR_H
#define _ASTAR_H

#ifdef WIN32
  #pragma warning (disable:4312)
#endif

#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);

#endif