From e2354d82e09c3bf8ae472d174332670d2d12f9bb Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 24 Nov 2015 14:28:26 +0100 Subject: Use Set instead of array for Direction choices --- src/ch/epfl/maze/physical/pacman/PacMan.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ch/epfl/maze/physical/pacman') diff --git a/src/ch/epfl/maze/physical/pacman/PacMan.java b/src/ch/epfl/maze/physical/pacman/PacMan.java index 6ec7436..debac67 100644 --- a/src/ch/epfl/maze/physical/pacman/PacMan.java +++ b/src/ch/epfl/maze/physical/pacman/PacMan.java @@ -6,6 +6,8 @@ import ch.epfl.maze.physical.Prey; import ch.epfl.maze.util.Direction; import ch.epfl.maze.util.Vector2D; +import java.util.Set; + /** * Pac-Man character, from the famous game of the same name. * @@ -19,7 +21,7 @@ public class PacMan extends Prey { } @Override - public Direction move(Direction[] choices, Daedalus daedalus) { + public Direction move(Set choices, Daedalus daedalus) { return this.move(choices); } -- cgit v1.2.3