From 17057b8e126e1378bda9c499828a87f5e397e367 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 22 Nov 2015 17:10:55 +0100 Subject: Implement Prey --- src/ch/epfl/maze/physical/Prey.java | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'src/ch/epfl/maze') 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; /** * Prey that is killed by a predator when they meet each other in the labyrinth. + * + * @author Pacien TRAN-GIRARD */ - -abstract public class Prey extends Animal { +abstract public class Prey extends ProbabilisticAnimal { /** * Constructs a prey with a specified position. * * @param position Position of the prey in the labyrinth */ - public Prey(Vector2D position) { super(position); - // TODO - } - - /** - * Moves according to a random walk, used while not being hunted in a - * {@code MazeSimulation}. - */ - - @Override - public final Direction move(Direction[] choices) { - // TODO - return Direction.NONE; } /** @@ -45,6 +33,6 @@ abstract public class Prey extends Animal { * @param daedalus The world in which the animal moves * @return The next direction of the animal, chosen in {@code choices} */ - abstract public Direction move(Direction[] choices, Daedalus daedalus); + } -- cgit v1.2.3