summaryrefslogtreecommitdiff
path: root/src/ch/epfl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl')
-rw-r--r--src/ch/epfl/maze/physical/World.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/maze/physical/World.java b/src/ch/epfl/maze/physical/World.java
index 7e89fb5..f13b2b1 100644
--- a/src/ch/epfl/maze/physical/World.java
+++ b/src/ch/epfl/maze/physical/World.java
@@ -131,7 +131,7 @@ public abstract class World {
131 */ 131 */
132 132
133 public final Direction[] getChoices(Vector2D position) { 133 public final Direction[] getChoices(Vector2D position) {
134 ArrayList<Direction> choices = new ArrayList<>(); 134 List<Direction> choices = new ArrayList<>();
135 for (Direction dir : Direction.POSSIBLE_DIRECTIONS) 135 for (Direction dir : Direction.POSSIBLE_DIRECTIONS)
136 if (this.isFree(position.addDirectionTo(dir))) 136 if (this.isFree(position.addDirectionTo(dir)))
137 choices.add(dir); 137 choices.add(dir);