pub struct Map { /* private fields */ }
Implementations§
Source§impl Map
impl Map
pub fn new(width: i32, height: i32) -> Map
pub fn size(&self) -> (i32, i32)
pub fn set(&mut self, x: i32, y: i32, transparent: bool, walkable: bool)
pub fn compute_fov( &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
pub fn is_walkable(&self, x: i32, y: i32) -> bool
pub fn clear(&mut self, transparent: bool, walkable: bool)
Trait Implementations§
Source§impl AsNative<*mut c_void> for Map
impl AsNative<*mut c_void> for Map
unsafe fn as_native(&self) -> &TCOD_map_t
unsafe fn as_native_mut(&mut self) -> &mut TCOD_map_t
impl Send for Map
Auto Trait Implementations§
impl Freeze for Map
impl RefUnwindSafe for Map
impl !Sync for Map
impl Unpin for Map
impl UnwindSafe for Map
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more