diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-14 09:56:40 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-14 10:01:13 -0500 |
| commit | 9a4cd221f8206fb1533937170f47dcd19d574ef1 (patch) | |
| tree | 14d7c270d3f621070f75b878c5df4a7b872c8008 /dungeon/src/entity.rs | |
| parent | Enable more clippy lints (diff) | |
| download | DungeonCrawl-9a4cd221f8206fb1533937170f47dcd19d574ef1.tar.gz DungeonCrawl-9a4cd221f8206fb1533937170f47dcd19d574ef1.tar.bz2 DungeonCrawl-9a4cd221f8206fb1533937170f47dcd19d574ef1.zip | |
Remove wildcard exports/imports
Diffstat (limited to 'dungeon/src/entity.rs')
| -rw-r--r-- | dungeon/src/entity.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/dungeon/src/entity.rs b/dungeon/src/entity.rs index 818328c..592c1ee 100644 --- a/dungeon/src/entity.rs +++ b/dungeon/src/entity.rs @@ -2,7 +2,11 @@ use rand::{Rng, rngs::SmallRng}; -use crate::{Direction, FPos, Floor, Pos, astar, const_pos}; +use crate::{ + astar, const_pos, + map::Floor, + pos::{Direction, FPos, Pos}, +}; /// `PLAYER_FULL_HEALTH` is the starting health of the player entity pub const PLAYER_FULL_HEALTH: u32 = 10; @@ -137,7 +141,7 @@ impl Entity { /// # Examples /// /// ``` - /// use dungeon::{Pos, Direction, Entity, EntityKind}; + /// use dungeon::{pos::{Pos, Direction}, entity::{Entity, EntityKind}}; /// /// let pos = Pos::new(0, 0).unwrap(); /// let dir = Direction::North; @@ -167,7 +171,7 @@ impl Entity { /// # Examples /// /// ``` - /// use dungeon::{Pos, Entity}; + /// use dungeon::{pos::Pos, entity::Entity}; /// /// let pos = Pos::new(0, 0).unwrap(); /// let player = Entity::player(pos); @@ -185,7 +189,7 @@ impl Entity { /// # Examples /// /// ``` - /// use dungeon::{Pos, Entity}; + /// use dungeon::{pos::Pos, entity::Entity}; /// /// let pos = Pos::new(0, 0).unwrap(); /// let player = Entity::zombie(pos); @@ -334,7 +338,7 @@ impl Player { /// # Examples /// /// ``` - /// use dungeon::{Pos, Player}; + /// use dungeon::{pos::Pos, entity::Player}; /// /// let pos = Pos::new(1, 2).unwrap(); /// let player = Player::new(pos); |