[−][src]Struct screeps::pathfinder::SearchOptions
Methods
impl SearchOptions<'static, fn(_: String) -> CostMatrix<'static>>[src]
impl<'a, F> SearchOptions<'a, F> where
F: Fn(String) -> CostMatrix<'a>, [src]
F: Fn(String) -> CostMatrix<'a>,
pub fn room_callback<'b, F2>(self, room_callback: F2) -> SearchOptions<'b, F2> where
F2: Fn(String) -> CostMatrix<'b>, [src]
F2: Fn(String) -> CostMatrix<'b>,
Sets room callback - default |_| { CostMatrix::default() }.
pub fn plain_cost(self, cost: u8) -> Self[src]
Sets plain cost - default 1.
pub fn swamp_cost(self, cost: u8) -> Self[src]
Sets swamp cost - default 5.
pub fn flee(self, flee: bool) -> Self[src]
Sets whether this is a flee search - default false.
pub fn max_ops(self, ops: u32) -> Self[src]
Sets maximum ops - default 2000.
pub fn max_rooms(self, rooms: u32) -> Self[src]
Sets maximum rooms - default 16, max 16.
pub fn max_cost(self, cost: f64) -> Self[src]
Sets maximum path cost - default f64::Infinity.
pub fn heuristic_weight(self, weight: f64) -> Self[src]
Sets heuristic weight - default 1.2.
Trait Implementations
impl Default for SearchOptions<'static, fn(_: String) -> CostMatrix<'static>>[src]
Auto Trait Implementations
impl<'a, F> Send for SearchOptions<'a, F> where
F: Send,
F: Send,
impl<'a, F> Sync for SearchOptions<'a, F> where
F: Sync,
F: Sync,
Blanket Implementations
impl<T, U> IntoExpectedType for T where
U: FromExpectedType<T>, [src]
U: FromExpectedType<T>,
fn into_expected_type(Self) -> Result<U, ConversionError>[src]
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,