Struct screeps::pathfinder::SearchOptions [] [src]

pub struct SearchOptions<'a, F> where
    F: Fn(String) -> CostMatrix<'a>, 
{ /* fields omitted */ }

Methods

impl SearchOptions<'static, fn(_: String) -> CostMatrix<'static>>
[src]

[src]

Creates default SearchOptions

impl<'a, F> SearchOptions<'a, F> where
    F: Fn(String) -> CostMatrix<'a>, 
[src]

[src]

Sets room callback - default |_| { CostMatrix::default() }.

[src]

Sets plain cost - default 1.

[src]

Sets swamp cost - default 5.

[src]

Sets whether this is a flee search - default false.

[src]

Sets maximum ops - default 2000.

[src]

Sets maximum rooms - default 16, max 16.

[src]

Sets maximum path cost - default f64::Infinity.

[src]

Sets heuristic weight - default 1.2.

Trait Implementations

impl Default for SearchOptions<'static, fn(_: String) -> CostMatrix<'static>>
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<'a, F> Send for SearchOptions<'a, F> where
    F: Send

impl<'a, F> Sync for SearchOptions<'a, F> where
    F: Sync