[][src]Struct tcod::map::Map

pub struct Map { /* fields omitted */ }

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]

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]

impl Send for Map[src]

impl Drop for Map[src]

impl Clone for Map[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Sync for Map

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]