summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/pacman
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-24 14:28:26 +0100
committerPacien TRAN-GIRARD2015-11-24 14:28:26 +0100
commite2354d82e09c3bf8ae472d174332670d2d12f9bb (patch)
tree92528b9231178fd47c6910163360413d4ae77256 /src/ch/epfl/maze/physical/pacman
parent5f9be99e7ebd4a90e666e6efbe9e9d4b3b8008e7 (diff)
downloadmaze-solver-e2354d82e09c3bf8ae472d174332670d2d12f9bb.tar.gz
Use Set instead of array for Direction choices
Diffstat (limited to 'src/ch/epfl/maze/physical/pacman')
-rw-r--r--src/ch/epfl/maze/physical/pacman/PacMan.java4
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;
6import ch.epfl.maze.util.Direction; 6import ch.epfl.maze.util.Direction;
7import ch.epfl.maze.util.Vector2D; 7import ch.epfl.maze.util.Vector2D;
8 8
9import 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