refactor: move entity-related code into src/entity submodule

This commit is contained in:
2025-07-24 12:36:48 -05:00
parent 5728effcc6
commit cfa73c58a8
8 changed files with 12 additions and 12 deletions

View File

@@ -22,10 +22,10 @@ use crate::constants::RAW_BOARD;
use crate::debug::{DebugMode, DebugRenderer};
use crate::direction::Direction;
use crate::edible::{reconstruct_edibles, Edible, EdibleKind};
use crate::entity::blinky::Blinky;
use crate::entity::pacman::Pacman;
use crate::entity::Renderable;
use crate::ghosts::blinky::Blinky;
use crate::map::Map;
use crate::pacman::Pacman;
/// The main game state.
///
@@ -232,7 +232,7 @@ impl<'a> Game<'a> {
self.blinky.base.base.cell_position = *pos;
self.blinky.base.in_tunnel = false;
self.blinky.base.direction = Direction::Left;
self.blinky.mode = crate::ghost::GhostMode::Chase;
self.blinky.mode = crate::entity::ghost::GhostMode::Chase;
}
}