diff options
Diffstat (limited to 'src/tiling.rs')
-rw-r--r-- | src/tiling.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/tiling.rs b/src/tiling.rs index d443fb6..bc1bd50 100644 --- a/src/tiling.rs +++ b/src/tiling.rs @@ -1,8 +1,5 @@ extern crate pancurses; -use pancurses::{Window}; - - pub struct TileGrid { grid: Vec<Vec<TileType>> } @@ -41,7 +38,7 @@ impl<'a> TileGrid { } } -fn tile_to_str(tile: &TileType) -> &str { +pub fn tile_to_str(tile: &TileType) -> &str { match tile { TileType::Floor => ".", TileType::Wall => "#", @@ -53,10 +50,6 @@ fn tile_to_str(tile: &TileType) -> &str { } } -pub fn draw_block(window: &Window, block: &TileType) { - window.printw(tile_to_str(block)); -} - pub trait Tileable { fn tile(&self, grid: &mut TileGrid) -> Result<(), String>; } |