diff options
| author | alf9310 <alf9310@rit.edu> | 2025-11-10 00:46:23 -0500 |
|---|---|---|
| committer | alf9310 <alf9310@rit.edu> | 2025-11-10 00:46:23 -0500 |
| commit | 9d3ec11a74fd6f7274ba10c96148dd5c863649ba (patch) | |
| tree | af47e814721a9ec865de433e58f46cf8eb584f99 /dungeon | |
| parent | Merge branch 'dungeon_generation' into 'main' (diff) | |
| download | DungeonCrawl-9d3ec11a74fd6f7274ba10c96148dd5c863649ba.tar.gz DungeonCrawl-9d3ec11a74fd6f7274ba10c96148dd5c863649ba.tar.bz2 DungeonCrawl-9d3ec11a74fd6f7274ba10c96148dd5c863649ba.zip | |
main: Slight merge conflict with Air resolved
Diffstat (limited to 'dungeon')
| -rw-r--r-- | dungeon/src/map.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dungeon/src/map.rs b/dungeon/src/map.rs index 7d79f7f..ade485e 100644 --- a/dungeon/src/map.rs +++ b/dungeon/src/map.rs @@ -51,7 +51,7 @@ impl Tile { /// Returns if the tile is walkable #[must_use] pub const fn is_walkable(self) -> bool { - matches!(self, Self::Air) + matches!(self, Self::Room | Self::Hallway | Self::Stairs) } // Index by u16 @@ -65,7 +65,8 @@ impl Display for Tile { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let char = match self { Self::Wall => '#', - Self::Air => '.', + Self::Room => '.', + Self::Hallway => ',', Self::Stairs => '>', }; f.write_char(char) |