pathfinder
Vars | |
active_pathing | List of pathfind datums we are currently trying to process |
---|---|
currentmaps | List of uncheccked source_to_map entries |
currentrun | List of pathfind datums being ACTIVELY processed. exists to make subsystem stats readable |
source_to_maps | Assoc list of target turf -> list(/datum/path_map) centered on the turf |
Procs | |
build_map | Initiates a SSSP run. Returns true if we're good, FALSE if something's failed |
can_pass_build_map | Initiates a SSSP run from a pass_info datum. Returns true if we're good, FALSE if something's failed |
get_valid_map | Takes a set of pathfind info, returns the first valid pathmap that would work if one exists Optionally takes a max age to accept (defaults to 0 seconds) and a minimum acceptable range If include_building is true and we can only find a building path, ew'll use that instead. tho we will wait for it to finish first |
get_valid_maps | Takes a set of pathfind info, returns all valid pathmaps that would work Takes an optional minimum range arg |
path_map_cache | Caches the passed in path_map, allowing for reuse in future |
pathfind | Initiates a pathfind. Returns true if we're good, FALSE if something's failed |
run_pathfind | Begins to handle a pathfinding run based off the input /datum/pathfind datum You should not use this, it exists to allow for shenanigans. You do not know how to do shenanigans |
swarmed_pathfind | Initiates a swarmed pathfind. Returns TRUE if we're good, FALSE if something's failed If a valid pathmap exists for the TARGET turf we'll use that, otherwise we have to build a new one |
Var Details
active_pathing
List of pathfind datums we are currently trying to process
currentmaps
List of uncheccked source_to_map entries
currentrun
List of pathfind datums being ACTIVELY processed. exists to make subsystem stats readable
source_to_maps
Assoc list of target turf -> list(/datum/path_map) centered on the turf
Proc Details
build_map
Initiates a SSSP run. Returns true if we're good, FALSE if something's failed
can_pass_build_map
Initiates a SSSP run from a pass_info datum. Returns true if we're good, FALSE if something's failed
get_valid_map
Takes a set of pathfind info, returns the first valid pathmap that would work if one exists Optionally takes a max age to accept (defaults to 0 seconds) and a minimum acceptable range If include_building is true and we can only find a building path, ew'll use that instead. tho we will wait for it to finish first
get_valid_maps
Takes a set of pathfind info, returns all valid pathmaps that would work Takes an optional minimum range arg
path_map_cache
Caches the passed in path_map, allowing for reuse in future
pathfind
Initiates a pathfind. Returns true if we're good, FALSE if something's failed
run_pathfind
Begins to handle a pathfinding run based off the input /datum/pathfind datum You should not use this, it exists to allow for shenanigans. You do not know how to do shenanigans
swarmed_pathfind
Initiates a swarmed pathfind. Returns TRUE if we're good, FALSE if something's failed If a valid pathmap exists for the TARGET turf we'll use that, otherwise we have to build a new one