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/Animal.java | 104 ++++++++++++++++------------------ 1 file changed, 50 insertions(+), 54 deletions(-) (limited to 'src/ch/epfl/maze/physical/Animal.java') diff --git a/src/ch/epfl/maze/physical/Animal.java b/src/ch/epfl/maze/physical/Animal.java index 8749f61..ebe389f 100644 --- a/src/ch/epfl/maze/physical/Animal.java +++ b/src/ch/epfl/maze/physical/Animal.java @@ -6,72 +6,68 @@ import ch.epfl.maze.util.Vector2D; /** * Animal inside a {@code World} that can move depending on the available * choices it has at its position. - * */ abstract public class Animal { - /** - * Constructs an animal with a specified position. - * - * @param position - * Position of the animal in the labyrinth - */ + /** + * Constructs an animal with a specified position. + * + * @param position Position of the animal in the labyrinth + */ - public Animal(Vector2D position) { - // TODO - } + public Animal(Vector2D position) { + // TODO + } - /** - * Retrieves the next direction of the animal, by selecting one choice among - * the ones available from its position. - * - * @param choices - * The choices left to the animal at its current position (see - * {@link ch.epfl.maze.physical.World#getChoices(Vector2D) - * World.getChoices(Vector2D)}) - * @return The next direction of the animal, chosen in {@code choices} - */ + /** + * Retrieves the next direction of the animal, by selecting one choice among + * the ones available from its position. + * + * @param choices The choices left to the animal at its current position (see + * {@link ch.epfl.maze.physical.World#getChoices(Vector2D) + * World.getChoices(Vector2D)}) + * @return The next direction of the animal, chosen in {@code choices} + */ - abstract public Direction move(Direction[] choices); + abstract public Direction move(Direction[] choices); - /** - * Updates the animal position with a direction. - *

- * Note : Do not call this function in {@code move(Direction[] - * choices)} ! - * - * @param dir - * Direction that the animal has taken - */ + /** + * Updates the animal position with a direction. + *

+ * Note : Do not call this function in {@code move(Direction[] + * choices)} ! + * + * @param dir Direction that the animal has taken + */ - public final void update(Direction dir) { - // TODO - } + public final void update(Direction dir) { + // TODO + } - /** - * Sets new position for Animal. - *

- * Note : Do not call this function in {@code move(Direction[] - * choices)} ! - * - * @param position - */ + /** + * Sets new position for Animal. + *

+ * Note : Do not call this function in {@code move(Direction[] + * choices)} ! + * + * @param position + */ - public final void setPosition(Vector2D position) { - // TODO - } + public final void setPosition(Vector2D position) { + // TODO + } - /** - * Returns position vector of animal. - * - * @return Current position of animal. - */ + /** + * Returns position vector of animal. + * + * @return Current position of animal. + */ - public final Vector2D getPosition() { - // TODO - return null; - } + public final Vector2D getPosition() { + // TODO + return null; + } - abstract public Animal copy(); + abstract public Animal copy(); } -- cgit v1.2.3