Moved mode-related in to package
This commit is contained in:
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
@ -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;
|
||||||
@ -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;
|
||||||
@ -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;
|
||||||
@ -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;
|
||||||
|
|
||||||
@ -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,
|
||||||
@ -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;
|
||||||
@ -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;
|
||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user