shithub: asif

ref: 13a7d1ca0b2e2fe5fae116d92e475ff0bfad6a9a
dir: /path/dat.h/

View raw version
typedef struct Vertex Vertex;
typedef struct Node Node;
typedef struct PNode PNode;

struct Vertex{
	int x;
	int y;
};
struct PNode{
	int open;
	int closed;
	double g;
	double h;
	double Δg;
	Node *to;
	Node *from;
	Pairheap *pq;
};
struct Node{
	int blocked;
	PNode;		// generalize later
};
extern Node *map;
extern int mapwidth, mapheight;
extern Node *selected;
extern Node *start, *goal;
extern int fourdir;