diff options
author | Pacien TRAN-GIRARD | 2015-11-22 18:56:56 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-11-22 18:56:56 +0100 |
commit | 9811ea74bcc9793a1ba6659aab850259e5671763 (patch) | |
tree | b79433e546db6d27fc944b735c72bba670321297 /src/ch/epfl/maze/physical/pacman | |
parent | 04fa54cd5132aab16104a5dbbccbbdb18243aab6 (diff) | |
download | maze-solver-9811ea74bcc9793a1ba6659aab850259e5671763.tar.gz |
Implement Predator and distinguish derived GhostPredator
Diffstat (limited to 'src/ch/epfl/maze/physical/pacman')
-rw-r--r-- | src/ch/epfl/maze/physical/pacman/Blinky.java | 4 | ||||
-rw-r--r-- | src/ch/epfl/maze/physical/pacman/Clyde.java | 4 | ||||
-rw-r--r-- | src/ch/epfl/maze/physical/pacman/Inky.java | 4 | ||||
-rw-r--r-- | src/ch/epfl/maze/physical/pacman/Pinky.java | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/ch/epfl/maze/physical/pacman/Blinky.java b/src/ch/epfl/maze/physical/pacman/Blinky.java index 02b7159..f91f5e0 100644 --- a/src/ch/epfl/maze/physical/pacman/Blinky.java +++ b/src/ch/epfl/maze/physical/pacman/Blinky.java | |||
@@ -2,7 +2,7 @@ package ch.epfl.maze.physical.pacman; | |||
2 | 2 | ||
3 | import ch.epfl.maze.physical.Animal; | 3 | import ch.epfl.maze.physical.Animal; |
4 | import ch.epfl.maze.physical.Daedalus; | 4 | import ch.epfl.maze.physical.Daedalus; |
5 | import ch.epfl.maze.physical.Predator; | 5 | import ch.epfl.maze.physical.GhostPredator; |
6 | import ch.epfl.maze.util.Direction; | 6 | import ch.epfl.maze.util.Direction; |
7 | import ch.epfl.maze.util.Vector2D; | 7 | import ch.epfl.maze.util.Vector2D; |
8 | 8 | ||
@@ -10,7 +10,7 @@ import ch.epfl.maze.util.Vector2D; | |||
10 | * Red ghost from the Pac-Man game, chases directly its target. | 10 | * Red ghost from the Pac-Man game, chases directly its target. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | public class Blinky extends Predator { | 13 | public class Blinky extends GhostPredator { |
14 | 14 | ||
15 | /** | 15 | /** |
16 | * Constructs a Blinky with a starting position. | 16 | * Constructs a Blinky with a starting position. |
diff --git a/src/ch/epfl/maze/physical/pacman/Clyde.java b/src/ch/epfl/maze/physical/pacman/Clyde.java index 35d0a9b..6b3bef3 100644 --- a/src/ch/epfl/maze/physical/pacman/Clyde.java +++ b/src/ch/epfl/maze/physical/pacman/Clyde.java | |||
@@ -2,7 +2,7 @@ package ch.epfl.maze.physical.pacman; | |||
2 | 2 | ||
3 | import ch.epfl.maze.physical.Animal; | 3 | import ch.epfl.maze.physical.Animal; |
4 | import ch.epfl.maze.physical.Daedalus; | 4 | import ch.epfl.maze.physical.Daedalus; |
5 | import ch.epfl.maze.physical.Predator; | 5 | import ch.epfl.maze.physical.GhostPredator; |
6 | import ch.epfl.maze.util.Direction; | 6 | import ch.epfl.maze.util.Direction; |
7 | import ch.epfl.maze.util.Vector2D; | 7 | import ch.epfl.maze.util.Vector2D; |
8 | 8 | ||
@@ -11,7 +11,7 @@ import ch.epfl.maze.util.Vector2D; | |||
11 | * from its target and SCATTER if close. | 11 | * from its target and SCATTER if close. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | public class Clyde extends Predator { | 14 | public class Clyde extends GhostPredator { |
15 | 15 | ||
16 | /** | 16 | /** |
17 | * Constructs a Clyde with a starting position. | 17 | * Constructs a Clyde with a starting position. |
diff --git a/src/ch/epfl/maze/physical/pacman/Inky.java b/src/ch/epfl/maze/physical/pacman/Inky.java index e5cf5ad..146ecef 100644 --- a/src/ch/epfl/maze/physical/pacman/Inky.java +++ b/src/ch/epfl/maze/physical/pacman/Inky.java | |||
@@ -2,7 +2,7 @@ package ch.epfl.maze.physical.pacman; | |||
2 | 2 | ||
3 | import ch.epfl.maze.physical.Animal; | 3 | import ch.epfl.maze.physical.Animal; |
4 | import ch.epfl.maze.physical.Daedalus; | 4 | import ch.epfl.maze.physical.Daedalus; |
5 | import ch.epfl.maze.physical.Predator; | 5 | import ch.epfl.maze.physical.GhostPredator; |
6 | import ch.epfl.maze.util.Direction; | 6 | import ch.epfl.maze.util.Direction; |
7 | import ch.epfl.maze.util.Vector2D; | 7 | import ch.epfl.maze.util.Vector2D; |
8 | 8 | ||
@@ -11,7 +11,7 @@ import ch.epfl.maze.util.Vector2D; | |||
11 | * from Blinky to its target. | 11 | * from Blinky to its target. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | public class Inky extends Predator { | 14 | public class Inky extends GhostPredator { |
15 | 15 | ||
16 | /** | 16 | /** |
17 | * Constructs a Inky with a starting position. | 17 | * Constructs a Inky with a starting position. |
diff --git a/src/ch/epfl/maze/physical/pacman/Pinky.java b/src/ch/epfl/maze/physical/pacman/Pinky.java index 100264c..3e4209d 100644 --- a/src/ch/epfl/maze/physical/pacman/Pinky.java +++ b/src/ch/epfl/maze/physical/pacman/Pinky.java | |||
@@ -2,7 +2,7 @@ package ch.epfl.maze.physical.pacman; | |||
2 | 2 | ||
3 | import ch.epfl.maze.physical.Animal; | 3 | import ch.epfl.maze.physical.Animal; |
4 | import ch.epfl.maze.physical.Daedalus; | 4 | import ch.epfl.maze.physical.Daedalus; |
5 | import ch.epfl.maze.physical.Predator; | 5 | import ch.epfl.maze.physical.GhostPredator; |
6 | import ch.epfl.maze.util.Direction; | 6 | import ch.epfl.maze.util.Direction; |
7 | import ch.epfl.maze.util.Vector2D; | 7 | import ch.epfl.maze.util.Vector2D; |
8 | 8 | ||
@@ -10,7 +10,7 @@ import ch.epfl.maze.util.Vector2D; | |||
10 | * Pink ghost from the Pac-Man game, targets 4 squares in front of its target. | 10 | * Pink ghost from the Pac-Man game, targets 4 squares in front of its target. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | public class Pinky extends Predator { | 13 | public class Pinky extends GhostPredator { |
14 | 14 | ||
15 | /** | 15 | /** |
16 | * Constructs a Pinky with a starting position. | 16 | * Constructs a Pinky with a starting position. |