Function screeps::pathfinder::search

source ·
pub fn search<'a, O, G, F>(
    origin: &O,
    goal: &G,
    range: u32,
    opts: SearchOptions<'a, F>
) -> SearchResultswhere
    O: HasPosition,
    G: HasPosition,
    F: Fn(String) -> CostMatrix<'a> + 'a,
Expand description

Searches between a single origin and single goal.