From bc477506342411e9156b3230d847cb92bcb8e5f9 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 24 Nov 2015 11:11:17 +0100 Subject: Reformat code --- src/ch/epfl/maze/physical/Animal.java | 7 +------ 1 file changed, 1 insertion(+), 6 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 9123d82..0079d11 100644 --- a/src/ch/epfl/maze/physical/Animal.java +++ b/src/ch/epfl/maze/physical/Animal.java @@ -9,7 +9,6 @@ import ch.epfl.maze.util.Vector2D; * * @author Pacien TRAN-GIRARD */ - abstract public class Animal { private Vector2D position; @@ -19,7 +18,6 @@ abstract public class Animal { * * @param position Position of the animal in the labyrinth */ - public Animal(Vector2D position) { this.position = position; } @@ -33,7 +31,6 @@ abstract public class Animal { * World.getChoices(Vector2D)}) * @return The next direction of the animal, chosen in {@code choices} */ - abstract public Direction move(Direction[] choices); /** @@ -44,7 +41,6 @@ abstract public class Animal { * * @param dir Direction that the animal has taken */ - public final void update(Direction dir) { this.position = this.position.addDirectionTo(dir); } @@ -57,7 +53,6 @@ abstract public class Animal { * * @param position */ - public final void setPosition(Vector2D position) { this.position = position; } @@ -67,10 +62,10 @@ abstract public class Animal { * * @return Current position of animal. */ - public final Vector2D getPosition() { return this.position; } abstract public Animal copy(); + } -- cgit v1.2.3