diff --git a/src/main/java/pacmanGame/GhostBehavior.java b/src/main/java/pacmanGame/GhostBehavior.java index 5d0cacd..bad3e66 100644 --- a/src/main/java/pacmanGame/GhostBehavior.java +++ b/src/main/java/pacmanGame/GhostBehavior.java @@ -1,7 +1,7 @@ package pacmanGame; public interface GhostBehavior { - public Vector2 GetDirection(); + public Vector2 GetDirection(Ghost ghost); } diff --git a/src/main/java/pacmanGame/GhostBehaviorChase.java b/src/main/java/pacmanGame/GhostBehaviorChase.java index ea698e6..e505fca 100644 --- a/src/main/java/pacmanGame/GhostBehaviorChase.java +++ b/src/main/java/pacmanGame/GhostBehaviorChase.java @@ -1,14 +1,10 @@ package pacmanGame; public class GhostBehaviorChase implements GhostBehavior { - public final Ghost ghost; - public GhostBehaviorChase(Ghost ghost) { - this.ghost = ghost; - } - @Override - public Vector2 GetDirection() { + public Vector2 GetDirection(Ghost ghost) { + return null; }