You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
//HEADER_GOES_HERE |
|
#ifndef __PATH_H__ |
|
#define __PATH_H__ |
|
|
|
extern PATHNODE path_nodes[300]; |
|
extern int gdwCurPathStep; |
|
extern int gdwCurNodes; |
|
extern int pnode_vals[25]; |
|
extern PATHNODE *pnode_ptr; |
|
extern PATHNODE *pnode_tblptr[300]; |
|
extern PATHNODE *path_2_nodes; |
|
|
|
int __fastcall FindPath(BOOL(__fastcall *PosOk)(int, int, int), int PosOkArg, int sx, int sy, int dx, int dy, char *path); |
|
int __fastcall path_get_h_cost(int sx, int sy, int dx, int dy); |
|
int __fastcall path_check_equal(PATHNODE *pPath, int dx, int dy); |
|
PATHNODE *__cdecl GetNextPath(); |
|
BOOL __fastcall path_solid_pieces(PATHNODE *pPath, int dx, int dy); |
|
BOOL __fastcall path_get_path(BOOL(__fastcall *PosOk)(int, int, int), int PosOkArg, PATHNODE *pPath, int x, int y); |
|
BOOL __fastcall path_parent_path(PATHNODE *pPath, int dx, int dy, int sx, int sy); |
|
PATHNODE *__fastcall path_get_node1(int dx, int dy); |
|
PATHNODE *__fastcall path_get_node2(int dx, int dy); |
|
void __fastcall path_next_node(PATHNODE *pPath); |
|
void __fastcall path_set_coords(PATHNODE *pPath); |
|
void __fastcall path_push_active_step(PATHNODE *pPath); |
|
PATHNODE *__cdecl path_pop_active_step(); |
|
PATHNODE *__cdecl path_new_step(); |
|
|
|
/* rdata */ |
|
|
|
extern const char pathxdir[8]; |
|
extern const char pathydir[8]; |
|
|
|
/* data */ |
|
extern char path_directions[9]; |
|
|
|
#endif /* __PATH_H__ */
|
|
|