summaryrefslogtreecommitdiff
path: root/src/astar.h
blob: feafb7d7b1c5c46b05b9f33652942c9e6cf749ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _ASTAR_H
#define _ASTAR_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);

#endif