diff options
Diffstat (limited to 'src/ch')
-rw-r--r-- | src/ch/epfl/maze/physical/Prey.java | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/ch/epfl/maze/physical/Prey.java b/src/ch/epfl/maze/physical/Prey.java index bb5b371..1f5225f 100644 --- a/src/ch/epfl/maze/physical/Prey.java +++ b/src/ch/epfl/maze/physical/Prey.java | |||
@@ -5,30 +5,18 @@ import ch.epfl.maze.util.Vector2D; | |||
5 | 5 | ||
6 | /** | 6 | /** |
7 | * Prey that is killed by a predator when they meet each other in the labyrinth. | 7 | * Prey that is killed by a predator when they meet each other in the labyrinth. |
8 | * | ||
9 | * @author Pacien TRAN-GIRARD | ||
8 | */ | 10 | */ |
9 | 11 | abstract public class Prey extends ProbabilisticAnimal { | |
10 | abstract public class Prey extends Animal { | ||
11 | 12 | ||
12 | /** | 13 | /** |
13 | * Constructs a prey with a specified position. | 14 | * Constructs a prey with a specified position. |
14 | * | 15 | * |
15 | * @param position Position of the prey in the labyrinth | 16 | * @param position Position of the prey in the labyrinth |
16 | */ | 17 | */ |
17 | |||
18 | public Prey(Vector2D position) { | 18 | public Prey(Vector2D position) { |
19 | super(position); | 19 | super(position); |
20 | // TODO | ||
21 | } | ||
22 | |||
23 | /** | ||
24 | * Moves according to a <i>random walk</i>, used while not being hunted in a | ||
25 | * {@code MazeSimulation}. | ||
26 | */ | ||
27 | |||
28 | @Override | ||
29 | public final Direction move(Direction[] choices) { | ||
30 | // TODO | ||
31 | return Direction.NONE; | ||
32 | } | 20 | } |
33 | 21 | ||
34 | /** | 22 | /** |
@@ -45,6 +33,6 @@ abstract public class Prey extends Animal { | |||
45 | * @param daedalus The world in which the animal moves | 33 | * @param daedalus The world in which the animal moves |
46 | * @return The next direction of the animal, chosen in {@code choices} | 34 | * @return The next direction of the animal, chosen in {@code choices} |
47 | */ | 35 | */ |
48 | |||
49 | abstract public Direction move(Direction[] choices, Daedalus daedalus); | 36 | abstract public Direction move(Direction[] choices, Daedalus daedalus); |
37 | |||
50 | } | 38 | } |