package ch.epfl.maze.physical.pacman; import ch.epfl.maze.physical.Animal; import ch.epfl.maze.physical.Daedalus; import ch.epfl.maze.physical.GhostPredator; import ch.epfl.maze.util.Vector2D; /** * Red ghost from the Pac-Man game, chases directly its target. * * @author Pacien TRAN-GIRARD */ public class Blinky extends GhostPredator { /** * Constructs a Blinky with a starting position. * * @param position Starting position of Blinky in the labyrinth */ public Blinky(Vector2D position) { super(position); } /** * Targets directly the current position of the Prey. * * @param daedalus The Daedalus * @return The position of the Prey */ @Override protected Vector2D getPreyTargetPosition(Daedalus daedalus) { return this.getPreyPosition(daedalus); } @Override public Animal copy() { return new Blinky(this.getPosition()); } }