summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/pacman
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/physical/pacman')
-rw-r--r--src/ch/epfl/maze/physical/pacman/Blinky.java18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/ch/epfl/maze/physical/pacman/Blinky.java b/src/ch/epfl/maze/physical/pacman/Blinky.java
index f91f5e0..b3ac64e 100644
--- a/src/ch/epfl/maze/physical/pacman/Blinky.java
+++ b/src/ch/epfl/maze/physical/pacman/Blinky.java
@@ -3,13 +3,13 @@ package ch.epfl.maze.physical.pacman;
3import ch.epfl.maze.physical.Animal; 3import ch.epfl.maze.physical.Animal;
4import ch.epfl.maze.physical.Daedalus; 4import ch.epfl.maze.physical.Daedalus;
5import ch.epfl.maze.physical.GhostPredator; 5import ch.epfl.maze.physical.GhostPredator;
6import ch.epfl.maze.util.Direction;
7import ch.epfl.maze.util.Vector2D; 6import ch.epfl.maze.util.Vector2D;
8 7
9/** 8/**
10 * Red ghost from the Pac-Man game, chases directly its target. 9 * Red ghost from the Pac-Man game, chases directly its target.
10 *
11 * @author Pacien TRAN-GIRARD
11 */ 12 */
12
13public class Blinky extends GhostPredator { 13public class Blinky extends GhostPredator {
14 14
15 /** 15 /**
@@ -17,20 +17,24 @@ public class Blinky extends GhostPredator {
17 * 17 *
18 * @param position Starting position of Blinky in the labyrinth 18 * @param position Starting position of Blinky in the labyrinth
19 */ 19 */
20
21 public Blinky(Vector2D position) { 20 public Blinky(Vector2D position) {
22 super(position); 21 super(position);
23 // TODO
24 } 22 }
25 23
24 /**
25 * Targets directly the current position of the Prey.
26 *
27 * @param daedalus The Daedalus
28 * @return The position of the Prey
29 */
26 @Override 30 @Override
27 public Direction move(Direction[] choices, Daedalus daedalus) { 31 protected Vector2D getPreyTargetPosition(Daedalus daedalus) {
28 // TODO 32 return this.getPreyPosition(daedalus);
29 return Direction.NONE;
30 } 33 }
31 34
32 @Override 35 @Override
33 public Animal copy() { 36 public Animal copy() {
34 return new Blinky(this.getPosition()); 37 return new Blinky(this.getPosition());
35 } 38 }
39
36} 40}