diff options
Diffstat (limited to 'src/ch/epfl/maze/simulation/MazeSimulation.java')
-rw-r--r-- | src/ch/epfl/maze/simulation/MazeSimulation.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ch/epfl/maze/simulation/MazeSimulation.java b/src/ch/epfl/maze/simulation/MazeSimulation.java index 3fd0e52..2108f54 100644 --- a/src/ch/epfl/maze/simulation/MazeSimulation.java +++ b/src/ch/epfl/maze/simulation/MazeSimulation.java | |||
@@ -18,7 +18,6 @@ import java.util.TreeMap; | |||
18 | * the animation by notifying the changes to it. The simulation finishes when | 18 | * the animation by notifying the changes to it. The simulation finishes when |
19 | * every animal has found the exit. | 19 | * every animal has found the exit. |
20 | */ | 20 | */ |
21 | |||
22 | public final class MazeSimulation implements Simulation { | 21 | public final class MazeSimulation implements Simulation { |
23 | 22 | ||
24 | /* limit to the step counter, over which the animals are considered lost */ | 23 | /* limit to the step counter, over which the animals are considered lost */ |
@@ -34,7 +33,6 @@ public final class MazeSimulation implements Simulation { | |||
34 | * | 33 | * |
35 | * @param maze The maze to simulate | 34 | * @param maze The maze to simulate |
36 | */ | 35 | */ |
37 | |||
38 | public MazeSimulation(Maze maze) { | 36 | public MazeSimulation(Maze maze) { |
39 | mMaze = maze; | 37 | mMaze = maze; |
40 | mArrivalTimes = new TreeMap<Integer, List<Animal>>(); | 38 | mArrivalTimes = new TreeMap<Integer, List<Animal>>(); |
@@ -140,7 +138,6 @@ public final class MazeSimulation implements Simulation { | |||
140 | * @param listener The listener to which the function will notify the changes | 138 | * @param listener The listener to which the function will notify the changes |
141 | * (can be null) | 139 | * (can be null) |
142 | */ | 140 | */ |
143 | |||
144 | private void moveAnimals(Animation listener) { | 141 | private void moveAnimals(Animation listener) { |
145 | List<Animal> animals = mMaze.getAnimals(); | 142 | List<Animal> animals = mMaze.getAnimals(); |
146 | for (int i = 0; i < animals.size(); i++) { | 143 | for (int i = 0; i < animals.size(); i++) { |
@@ -205,4 +202,5 @@ public final class MazeSimulation implements Simulation { | |||
205 | } | 202 | } |
206 | } | 203 | } |
207 | } | 204 | } |
205 | |||
208 | } | 206 | } |