20 #ifndef INC_C4PathFinder
21 #define INC_C4PathFinder
34 typedef std::function<bool(int32_t x, int32_t y)>
PointFreeFn;
41 bool Find(int32_t iFromX, int32_t iFromY, int32_t iToX, int32_t iToY,
SetWaypointFn fnSetWaypoint);
47 bool AddRay(int32_t iFromX, int32_t iFromY, int32_t iToX, int32_t iToY, int32_t iDepth, int32_t iDirection,
C4PathFinderRay *pFrom,
C4TransferZone *pUseZone=
nullptr);
56 bool TransferZonesEnabled;
std::function< bool(int32_t x, int32_t y)> PointFreeFn
void EnableTransferZones(bool fEnabled)
void Init(PointFreeFn fnPointFree, C4TransferZones *pTransferZones=nullptr)
void SetLevel(int iLevel)
void Draw(C4TargetFacet &cgo)
bool Find(int32_t iFromX, int32_t iFromY, int32_t iToX, int32_t iToY, SetWaypointFn fnSetWaypoint)
std::function< bool(int32_t x, int32_t y, C4Object *transfer_object)> SetWaypointFn
bool PointFree(int32_t iX, int32_t iY)