diff options
author | Pacien TRAN-GIRARD | 2015-11-21 17:03:38 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-11-21 17:03:38 +0100 |
commit | 6add32eb44cf4a9e3228c74f79742ade424f08b1 (patch) | |
tree | 8e1a05ed6cc9e4a4e664c756c98baefd10724866 | |
parent | 6d278c3aa1fe96a7c1f56e8d9b1889beded513ba (diff) | |
download | maze-solver-6add32eb44cf4a9e3228c74f79742ade424f08b1.tar.gz |
Use Interface instead of implementation
-rw-r--r-- | src/ch/epfl/maze/physical/World.java | 2 |
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); |