/tg/ Station 13 - Modules - TypesVar Details - Proc Details

pathfind

The datum used to handle the JPS pathfinding, completely self-contained

Vars

avoidA specific turf we're avoiding, like if a mulebot is being blocked by someone t-posing in a doorway we're trying to get through
max_distanceLimits how far we can search before giving up on a path
on_finishThe callbacks to invoke when we're done working, passing in the completed product Invoked in order
pass_infoDatum that holds the canpass info of this pathing attempt. This is what CanAstarPass sees
simulated_onlySpace is big and empty, if this is TRUE then we ignore pathing through unsimulated tiles
startThe turf we started at

Procs

early_exitearly_exit() is called when something goes wrong in processing, and we need to halt the pathfinding NOW
finishedCleanup pass for the pathfinder. This tidies up the path, and fufills the pathfind's obligations
hand_backCall to return a value to whoever spawned this pathfinding work Will fail if it's already been called
search_stepsearch_step() is the workhorse of pathfinding. It'll do the searching logic, and will slowly build up a path returns TRUE if everything is stable, FALSE if the pathfinding logic has failed, and we need to abort
start"starts" off the pathfinding, by storing the values this datum will need to work later on returns FALSE if it fails to setup properly, TRUE otherwise

Var Details

avoid

A specific turf we're avoiding, like if a mulebot is being blocked by someone t-posing in a doorway we're trying to get through

max_distance

Limits how far we can search before giving up on a path

on_finish

The callbacks to invoke when we're done working, passing in the completed product Invoked in order

pass_info

Datum that holds the canpass info of this pathing attempt. This is what CanAstarPass sees

simulated_only

Space is big and empty, if this is TRUE then we ignore pathing through unsimulated tiles

start

The turf we started at

Proc Details

early_exit

early_exit() is called when something goes wrong in processing, and we need to halt the pathfinding NOW

finished

Cleanup pass for the pathfinder. This tidies up the path, and fufills the pathfind's obligations

hand_back

Call to return a value to whoever spawned this pathfinding work Will fail if it's already been called

search_step

search_step() is the workhorse of pathfinding. It'll do the searching logic, and will slowly build up a path returns TRUE if everything is stable, FALSE if the pathfinding logic has failed, and we need to abort

start

"starts" off the pathfinding, by storing the values this datum will need to work later on returns FALSE if it fails to setup properly, TRUE otherwise