diff --git a/src/main/java/pacmanGame/Ghost.java b/src/main/java/pacmanGame/Ghost.java index 7884171..288b150 100644 --- a/src/main/java/pacmanGame/Ghost.java +++ b/src/main/java/pacmanGame/Ghost.java @@ -17,14 +17,11 @@ public class Ghost { this.position = newPosition; } - public void move(Vector2 direction) { - this.position = this.position.Add(direction); - } - public void spawn() { this.position = gameManager.map.ghostSpawns[ghostNumber].Clone(); } + public void move() { - move(behavior.GetDirection(this)); + this.position = this.position.Add(behavior.GetDirection(this)); } }