Module pathfinder

Source
Expand description

Manually accessing the PathFinder API

This contains functionality from the PathFinder object in Screeps, which is itself a binding to a C++ Jump-Point Search pathfinding algorithm optimized for Screeps.

This is both more fine-grained and less automatic than other pathing methods, such as Room::find_path. PathFinder knows about terrain by default, but you must configure any other obstacles you want it to consider.

Screeps documentation

Structs§

JsSearchOptions
Object that represents a set of options for a call to [PathFinder::search].
PathFinder
Interfaces for calling the default Screeps PathFinder.
SearchGoal
SearchOptions
SearchResults
An object representing the results of a [PathFinder::search].

Enums§

MultiRoomCostResult
SingleRoomCostResult

Traits§

RoomCostResult

Functions§

search
search_many