diff options
Diffstat (limited to 'src/ch/epfl/maze/physical/pacman')
-rw-r--r-- | src/ch/epfl/maze/physical/pacman/PacMan.java | 4 |
1 files changed, 3 insertions, 1 deletions
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; | |||
6 | import ch.epfl.maze.util.Direction; | 6 | import ch.epfl.maze.util.Direction; |
7 | import ch.epfl.maze.util.Vector2D; | 7 | import ch.epfl.maze.util.Vector2D; |
8 | 8 | ||
9 | import java.util.Set; | ||
10 | |||
9 | /** | 11 | /** |
10 | * Pac-Man character, from the famous game of the same name. | 12 | * Pac-Man character, from the famous game of the same name. |
11 | * | 13 | * |
@@ -19,7 +21,7 @@ public class PacMan extends Prey { | |||
19 | } | 21 | } |
20 | 22 | ||
21 | @Override | 23 | @Override |
22 | public Direction move(Direction[] choices, Daedalus daedalus) { | 24 | public Direction move(Set<Direction> choices, Daedalus daedalus) { |
23 | return this.move(choices); | 25 | return this.move(choices); |
24 | } | 26 | } |
25 | 27 | ||