Struct hexagon_map::ActionFieldSolver
source · pub struct ActionFieldSolver<'a, T> { /* private fields */ }Implementations§
source§impl<'a, T> ActionFieldSolver<'a, T>
impl<'a, T> ActionFieldSolver<'a, T>
pub fn with_passable<F>(self, passable: F) -> Selfwhere F: Fn(&AxialPoint, &T) -> bool + 'static,
pub fn with_cost<F>(self, cost: F) -> Selfwhere F: Fn(&AxialPoint, &T) -> f64 + 'static,
source§impl<'a, T> ActionFieldSolver<'a, T>
impl<'a, T> ActionFieldSolver<'a, T>
sourcepub fn neighbors(&self, point: &AxialPoint) -> Vec<(AxialPoint, f64)>
pub fn neighbors(&self, point: &AxialPoint) -> Vec<(AxialPoint, f64)>
Get all passable neighbors from a point