Devilution
Diablo devolved - magic behind the 1996 computer game

◆ path_get_path()

BOOL path_get_path ( BOOL(*)(int, int, int)  PosOk,
int  PosOkArg,
PATHNODE pPath,
int  x,
int  y 
)

perform a single step of A* bread-first search by trying to step in every possible direction from pPath with goal (x,y).

Check each step with PosOk

Returns
FALSE if we ran out of preallocated nodes to use, else TRUE

Definition at line 178 of file path.cpp.