diff --git a/src/constants.rs b/src/constants.rs index 3b6c4e6..aec2fa4 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,6 +1,6 @@ use std::{collections::HashMap, ops::RangeInclusive}; -use crate::{monster::MonsterTypes, room::RoomType}; +use crate::{monsters::MonsterTypes, room::RoomType}; /// the number of rooms in vertical direction pub const ROOMS_HORIZONTAL: usize = 8; diff --git a/src/level.rs b/src/level.rs index 1daeea6..8189438 100644 --- a/src/level.rs +++ b/src/level.rs @@ -8,9 +8,9 @@ use crate::artifacts::Artifact; use crate::artifacts::{Chest, Potion}; use crate::constants::LEVEL_HEIGHT; use crate::constants::LEVEL_WIDTH; -use crate::monster::Monster; +use crate::monsters::Monster; #[cfg(test)] -use crate::monster::{Orc, Rat}; +use crate::monsters::{Orc, Rat}; use crate::player::Player; use crate::position::HasPosition; use crate::position::Position; diff --git a/src/level_generator.rs b/src/level_generator.rs index 530eb98..c575a47 100644 --- a/src/level_generator.rs +++ b/src/level_generator.rs @@ -13,8 +13,8 @@ use crate::artifacts::Potion; use crate::constants::get_monsters_per_level; use crate::constants::ROOM_HEIGHT; use crate::constants::ROOM_WIDTH; -use crate::monster::create_monster_by_type; -use crate::monster::Monster; +use crate::monsters::create_monster_by_type; +use crate::monsters::Monster; use crate::position::Position; use crate::room::Connection; use crate::{ diff --git a/src/main.rs b/src/main.rs index 821168a..dfc3468 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,7 +33,7 @@ mod level; mod level_generator; mod level_ladder; mod level_widget; -mod monster; +mod monsters; mod player; mod position; mod room; diff --git a/src/monster.rs b/src/monsters.rs similarity index 100% rename from src/monster.rs rename to src/monsters.rs