From 90bd766f361083f6fd9e39ff080c83fcc606832f Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 21 Nov 2015 10:44:42 +0100 Subject: Reformat imported code --- src/ch/epfl/maze/physical/Daedalus.java | 238 +++++++++++++++----------------- 1 file changed, 115 insertions(+), 123 deletions(-) (limited to 'src/ch/epfl/maze/physical/Daedalus.java') diff --git a/src/ch/epfl/maze/physical/Daedalus.java b/src/ch/epfl/maze/physical/Daedalus.java index 329ab92..2edad7b 100644 --- a/src/ch/epfl/maze/physical/Daedalus.java +++ b/src/ch/epfl/maze/physical/Daedalus.java @@ -6,131 +6,123 @@ import java.util.List; /** * Daedalus in which predators hunt preys. Once a prey has been caught by a * predator, it will be removed from the daedalus. - * */ public final class Daedalus extends World { - /** - * Constructs a Daedalus with a labyrinth structure - * - * @param labyrinth - * Structure of the labyrinth, an NxM array of tiles - */ - - public Daedalus(int[][] labyrinth) { - super(labyrinth); - // TODO - } - - @Override - public boolean isSolved() { - // TODO - return false; - } - - /** - * Adds a predator to the daedalus. - * - * @param p - * The predator to add - */ - - public void addPredator(Predator p) { - // TODO - } - - /** - * Adds a prey to the daedalus. - * - * @param p - * The prey to add - */ - - public void addPrey(Prey p) { - // TODO - } - - /** - * Removes a predator from the daedalus. - * - * @param p - * The predator to remove - */ - - public void removePredator(Predator p) { - // TODO - } - - /** - * Removes a prey from the daedalus. - * - * @param p - * The prey to remove - */ - - public void removePrey(Prey p) { - // TODO - } - - @Override - public List getAnimals() { - // TODO - return null; - } - - /** - * Returns a copy of the list of all current predators in the daedalus. - * - * @return A list of all predators in the daedalus - */ - - public List getPredators() { - // TODO - return new ArrayList(); - } - - /** - * Returns a copy of the list of all current preys in the daedalus. - * - * @return A list of all preys in the daedalus - */ - - public List getPreys() { - // TODO - return new ArrayList(); - } - - /** - * Determines if the daedalus contains a predator. - * - * @param p - * The predator in question - * @return true if the predator belongs to the world, false - * otherwise. - */ - - public boolean hasPredator(Predator p) { - // TODO - return false; - } - - /** - * Determines if the daedalus contains a prey. - * - * @param p - * The prey in question - * @return true if the prey belongs to the world, false - * otherwise. - */ - - public boolean hasPrey(Prey p) { - // TODO - return false; - } - - @Override - public void reset() { - // TODO - } + /** + * Constructs a Daedalus with a labyrinth structure + * + * @param labyrinth Structure of the labyrinth, an NxM array of tiles + */ + + public Daedalus(int[][] labyrinth) { + super(labyrinth); + // TODO + } + + @Override + public boolean isSolved() { + // TODO + return false; + } + + /** + * Adds a predator to the daedalus. + * + * @param p The predator to add + */ + + public void addPredator(Predator p) { + // TODO + } + + /** + * Adds a prey to the daedalus. + * + * @param p The prey to add + */ + + public void addPrey(Prey p) { + // TODO + } + + /** + * Removes a predator from the daedalus. + * + * @param p The predator to remove + */ + + public void removePredator(Predator p) { + // TODO + } + + /** + * Removes a prey from the daedalus. + * + * @param p The prey to remove + */ + + public void removePrey(Prey p) { + // TODO + } + + @Override + public List getAnimals() { + // TODO + return null; + } + + /** + * Returns a copy of the list of all current predators in the daedalus. + * + * @return A list of all predators in the daedalus + */ + + public List getPredators() { + // TODO + return new ArrayList(); + } + + /** + * Returns a copy of the list of all current preys in the daedalus. + * + * @return A list of all preys in the daedalus + */ + + public List getPreys() { + // TODO + return new ArrayList(); + } + + /** + * Determines if the daedalus contains a predator. + * + * @param p The predator in question + * @return true if the predator belongs to the world, false + * otherwise. + */ + + public boolean hasPredator(Predator p) { + // TODO + return false; + } + + /** + * Determines if the daedalus contains a prey. + * + * @param p The prey in question + * @return true if the prey belongs to the world, false + * otherwise. + */ + + public boolean hasPrey(Prey p) { + // TODO + return false; + } + + @Override + public void reset() { + // TODO + } } -- cgit v1.2.3