From 94c787d8c741d25f34033318bb4eaaa5c7d5420e Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Mon, 25 Nov 2024 07:20:03 +0100 Subject: [PATCH] rename monster.rs to monsters.rs --- src/constants.rs | 2 +- src/level.rs | 4 ++-- src/level_generator.rs | 4 ++-- src/main.rs | 2 +- src/{monster.rs => monsters.rs} | 0 5 files changed, 6 insertions(+), 6 deletions(-) rename src/{monster.rs => monsters.rs} (100%) 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