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/GhostPredator.java | |
parent | 04fa54cd5132aab16104a5dbbccbbdb18243aab6 (diff) | |
download | maze-solver-9811ea74bcc9793a1ba6659aab850259e5671763.tar.gz |
Implement Predator and distinguish derived GhostPredator
Diffstat (limited to 'src/ch/epfl/maze/physical/GhostPredator.java')
-rw-r--r-- | src/ch/epfl/maze/physical/GhostPredator.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ch/epfl/maze/physical/GhostPredator.java b/src/ch/epfl/maze/physical/GhostPredator.java new file mode 100644 index 0000000..34b8c4f --- /dev/null +++ b/src/ch/epfl/maze/physical/GhostPredator.java | |||
@@ -0,0 +1,25 @@ | |||
1 | package ch.epfl.maze.physical; | ||
2 | |||
3 | import ch.epfl.maze.util.Vector2D; | ||
4 | |||
5 | /** | ||
6 | * Predator ghost that have two different modes and a home position in the labyrinth. | ||
7 | * | ||
8 | * @author Pacien TRAN-GIRARD | ||
9 | */ | ||
10 | abstract public class GhostPredator extends Predator { | ||
11 | |||
12 | /* constants relative to the Pac-Man game */ | ||
13 | public static final int SCATTER_DURATION = 14; | ||
14 | public static final int CHASE_DURATION = 40; | ||
15 | |||
16 | /** | ||
17 | * Constructs a predator with a specified position. | ||
18 | * | ||
19 | * @param position Position of the predator in the labyrinth | ||
20 | */ | ||
21 | public GhostPredator(Vector2D position) { | ||
22 | super(position); | ||
23 | } | ||
24 | |||
25 | } | ||