Struct gamemap::Map
[−]
[src]
pub struct Map { /* fields omitted */ }
Methods
impl Map
[src]
fn new(w: u32, h: u32) -> Map
[src]
fn update(&mut self) -> &mut Map
[src]
fn clear(&mut self) -> &mut Map
[src]
fn add_sprite(&mut self, opts: ((u32, u32), char)) -> &mut Map
[src]
fn remove_sprite(&mut self, pos: (u32, u32)) -> &mut Map
[src]
fn move_sprite(&mut self, pos: (u32, u32), new_pos: (u32, u32)) -> &mut Map
[src]
fn get_width(&self) -> u32
[src]
fn get_height(&self) -> u32
[src]
fn set_uppertext<S>(&mut self, utext: S) -> &mut Map where
S: Into<String>,
[src]
S: Into<String>,
fn set_lowertext<S>(&mut self, ltext: S) -> &mut Map where
S: Into<String>,
[src]
S: Into<String>,