Moved mode-related in to package

This commit is contained in:
Urban Modig
2025-09-05 23:25:09 +02:00
parent 5f118a75f6
commit d551b464b1
11 changed files with 24 additions and 10 deletions

View File

@ -5,6 +5,13 @@ import lombok.Setter;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import se.urmo.game.collision.GhostCollisionChecker; import se.urmo.game.collision.GhostCollisionChecker;
import se.urmo.game.entities.BaseAnimated; import se.urmo.game.entities.BaseAnimated;
import se.urmo.game.entities.ghost.mode.ChaseGhostMode;
import se.urmo.game.entities.ghost.mode.EatenGhostMode;
import se.urmo.game.entities.ghost.mode.FrightenedGhostMode;
import se.urmo.game.entities.ghost.mode.FrozenGhostMode;
import se.urmo.game.entities.ghost.mode.GhostMode;
import se.urmo.game.entities.ghost.mode.GhostState;
import se.urmo.game.entities.ghost.mode.ScatterGhostMode;
import se.urmo.game.entities.ghost.strategy.GhostStrategy; import se.urmo.game.entities.ghost.strategy.GhostStrategy;
import se.urmo.game.entities.pacman.PacMan; import se.urmo.game.entities.pacman.PacMan;
import se.urmo.game.graphics.SpriteLocation; import se.urmo.game.graphics.SpriteLocation;

View File

@ -1,6 +1,7 @@
package se.urmo.game.entities.ghost; package se.urmo.game.entities.ghost.mode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import se.urmo.game.entities.ghost.Ghost;
import se.urmo.game.entities.ghost.strategy.GhostStrategy; import se.urmo.game.entities.ghost.strategy.GhostStrategy;
import se.urmo.game.entities.pacman.PacMan; import se.urmo.game.entities.pacman.PacMan;
import se.urmo.game.graphics.SpriteLocation; import se.urmo.game.graphics.SpriteLocation;

View File

@ -1,6 +1,7 @@
package se.urmo.game.entities.ghost; package se.urmo.game.entities.ghost.mode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import se.urmo.game.entities.ghost.Ghost;
import se.urmo.game.entities.ghost.strategy.GhostStrategy; import se.urmo.game.entities.ghost.strategy.GhostStrategy;
import se.urmo.game.entities.pacman.PacMan; import se.urmo.game.entities.pacman.PacMan;
import se.urmo.game.map.GameMap; import se.urmo.game.map.GameMap;

View File

@ -1,6 +1,7 @@
package se.urmo.game.entities.ghost; package se.urmo.game.entities.ghost.mode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import se.urmo.game.entities.ghost.Ghost;
import se.urmo.game.entities.ghost.strategy.EatenStrategy; import se.urmo.game.entities.ghost.strategy.EatenStrategy;
import se.urmo.game.entities.pacman.PacMan; import se.urmo.game.entities.pacman.PacMan;
import se.urmo.game.graphics.SpriteLocation; import se.urmo.game.graphics.SpriteLocation;

View File

@ -1,6 +1,7 @@
package se.urmo.game.entities.ghost; package se.urmo.game.entities.ghost.mode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import se.urmo.game.entities.ghost.Ghost;
import se.urmo.game.entities.ghost.strategy.FearStrategy; import se.urmo.game.entities.ghost.strategy.FearStrategy;
import se.urmo.game.entities.pacman.PacMan; import se.urmo.game.entities.pacman.PacMan;
import se.urmo.game.graphics.SpriteLocation; import se.urmo.game.graphics.SpriteLocation;

View File

@ -1,6 +1,7 @@
package se.urmo.game.entities.ghost; package se.urmo.game.entities.ghost.mode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import se.urmo.game.entities.ghost.Ghost;
import se.urmo.game.entities.pacman.PacMan; import se.urmo.game.entities.pacman.PacMan;
import se.urmo.game.map.GameMap; import se.urmo.game.map.GameMap;

View File

@ -1,4 +1,4 @@
package se.urmo.game.entities.ghost; package se.urmo.game.entities.ghost.mode;
public enum GhostMode { public enum GhostMode {
CHASE, CHASE,

View File

@ -1,5 +1,6 @@
package se.urmo.game.entities.ghost; package se.urmo.game.entities.ghost.mode;
import se.urmo.game.entities.ghost.Ghost;
import se.urmo.game.entities.pacman.PacMan; import se.urmo.game.entities.pacman.PacMan;
import se.urmo.game.map.GameMap; import se.urmo.game.map.GameMap;
import se.urmo.game.util.Direction; import se.urmo.game.util.Direction;

View File

@ -1,6 +1,7 @@
package se.urmo.game.entities.ghost; package se.urmo.game.entities.ghost.mode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import se.urmo.game.entities.ghost.Ghost;
import se.urmo.game.entities.ghost.strategy.GhostStrategy; import se.urmo.game.entities.ghost.strategy.GhostStrategy;
import se.urmo.game.entities.pacman.PacMan; import se.urmo.game.entities.pacman.PacMan;
import se.urmo.game.map.GameMap; import se.urmo.game.map.GameMap;

View File

@ -4,7 +4,7 @@ import lombok.Getter;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import se.urmo.game.collision.GhostCollisionChecker; import se.urmo.game.collision.GhostCollisionChecker;
import se.urmo.game.entities.ghost.Ghost; import se.urmo.game.entities.ghost.Ghost;
import se.urmo.game.entities.ghost.GhostMode; import se.urmo.game.entities.ghost.mode.GhostMode;
import se.urmo.game.entities.ghost.strategy.BlinkyStrategy; import se.urmo.game.entities.ghost.strategy.BlinkyStrategy;
import se.urmo.game.entities.ghost.strategy.ScatterToTopRight; import se.urmo.game.entities.ghost.strategy.ScatterToTopRight;
import se.urmo.game.entities.pacman.PacMan; import se.urmo.game.entities.pacman.PacMan;

View File

@ -5,7 +5,7 @@ import lombok.extern.slf4j.Slf4j;
import se.urmo.game.collision.CollisionChecker; import se.urmo.game.collision.CollisionChecker;
import se.urmo.game.collision.GhostCollisionChecker; import se.urmo.game.collision.GhostCollisionChecker;
import se.urmo.game.entities.ghost.Ghost; import se.urmo.game.entities.ghost.Ghost;
import se.urmo.game.entities.ghost.GhostMode; import se.urmo.game.entities.ghost.mode.GhostMode;
import se.urmo.game.entities.pacman.PacMan; import se.urmo.game.entities.pacman.PacMan;
import se.urmo.game.main.AnimationManager; import se.urmo.game.main.AnimationManager;
import se.urmo.game.main.FruitManager; import se.urmo.game.main.FruitManager;