rename monster.rs to monsters.rs
This commit is contained in:
parent
9776482922
commit
94c787d8c7
|
@ -1,6 +1,6 @@
|
||||||
use std::{collections::HashMap, ops::RangeInclusive};
|
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
|
/// the number of rooms in vertical direction
|
||||||
pub const ROOMS_HORIZONTAL: usize = 8;
|
pub const ROOMS_HORIZONTAL: usize = 8;
|
||||||
|
|
|
@ -8,9 +8,9 @@ use crate::artifacts::Artifact;
|
||||||
use crate::artifacts::{Chest, Potion};
|
use crate::artifacts::{Chest, Potion};
|
||||||
use crate::constants::LEVEL_HEIGHT;
|
use crate::constants::LEVEL_HEIGHT;
|
||||||
use crate::constants::LEVEL_WIDTH;
|
use crate::constants::LEVEL_WIDTH;
|
||||||
use crate::monster::Monster;
|
use crate::monsters::Monster;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
use crate::monster::{Orc, Rat};
|
use crate::monsters::{Orc, Rat};
|
||||||
use crate::player::Player;
|
use crate::player::Player;
|
||||||
use crate::position::HasPosition;
|
use crate::position::HasPosition;
|
||||||
use crate::position::Position;
|
use crate::position::Position;
|
||||||
|
|
|
@ -13,8 +13,8 @@ use crate::artifacts::Potion;
|
||||||
use crate::constants::get_monsters_per_level;
|
use crate::constants::get_monsters_per_level;
|
||||||
use crate::constants::ROOM_HEIGHT;
|
use crate::constants::ROOM_HEIGHT;
|
||||||
use crate::constants::ROOM_WIDTH;
|
use crate::constants::ROOM_WIDTH;
|
||||||
use crate::monster::create_monster_by_type;
|
use crate::monsters::create_monster_by_type;
|
||||||
use crate::monster::Monster;
|
use crate::monsters::Monster;
|
||||||
use crate::position::Position;
|
use crate::position::Position;
|
||||||
use crate::room::Connection;
|
use crate::room::Connection;
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
|
@ -33,7 +33,7 @@ mod level;
|
||||||
mod level_generator;
|
mod level_generator;
|
||||||
mod level_ladder;
|
mod level_ladder;
|
||||||
mod level_widget;
|
mod level_widget;
|
||||||
mod monster;
|
mod monsters;
|
||||||
mod player;
|
mod player;
|
||||||
mod position;
|
mod position;
|
||||||
mod room;
|
mod room;
|
||||||
|
|
Loading…
Reference in New Issue