[−][src]Struct basic_pathfinding::grid::Grid
Fields
tiles: Vec<Vec<i32>>walkable_tiles: Vec<i32>costs: HashMap<i32, i32>extra_costs: HashMap<i32, HashMap<i32, i32>>unstoppable_coords: HashMap<i32, HashMap<i32, bool>>unwalkable_coords: HashMap<i32, HashMap<i32, bool>>grid_type: GridTypeMethods
impl Grid[src]
pub fn is_cardinal(&self) -> bool[src]
pub fn is_hex(&self) -> bool[src]
pub fn is_intercardinal(&self) -> bool[src]
pub fn in_grid(&self, x: i32, y: i32) -> bool[src]
pub fn is_coord_stoppable(&self, x: i32, y: i32) -> bool[src]
pub fn is_coord_walkable(&self, x: i32, y: i32) -> bool[src]
pub fn get_coord_cost(&self, x: i32, y: i32) -> i32[src]
pub fn get_adjacent(&self, coord: &Coord) -> Vec<Coord>[src]
Trait Implementations
impl Default for Grid[src]
impl Debug for Grid[src]
impl Serialize for Grid[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de> Deserialize<'de> for Grid[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for Grid
impl Send for Grid
impl Unpin for Grid
impl RefUnwindSafe for Grid
impl UnwindSafe for Grid
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,