[−][src]Struct tcod::map::Map
Methods
impl Map
[src]
pub fn new(width: i32, height: i32) -> Map
[src]
pub fn size(&self) -> (i32, i32)
[src]
pub fn set(&mut self, x: i32, y: i32, transparent: bool, walkable: bool)
[src]
pub fn compute_fov(
&mut self,
origin_x: i32,
origin_y: i32,
max_radius: i32,
light_walls: bool,
algo: FovAlgorithm
)
[src]
&mut self,
origin_x: i32,
origin_y: i32,
max_radius: i32,
light_walls: bool,
algo: FovAlgorithm
)
pub fn is_in_fov(&self, x: i32, y: i32) -> bool
[src]
pub fn is_walkable(&self, x: i32, y: i32) -> bool
[src]
pub fn clear(&mut self, transparent: bool, walkable: bool)
[src]
Trait Implementations
impl AsNative<*mut c_void> for Map
[src]
unsafe fn as_native(&self) -> &TCOD_map_t
[src]
unsafe fn as_native_mut(&mut self) -> &mut TCOD_map_t
[src]
impl Send for Map
[src]
impl Drop for Map
[src]
impl Clone for Map
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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,