Skip to content
Snippets Groups Projects
Commit be41c79c authored by AREZKI Celia's avatar AREZKI Celia
Browse files

BoardFireFighterBehavior : modify the methode updateToNextGeneration

parent 6a7d4c4e
Branches
No related tags found
No related merge requests found
......@@ -113,6 +113,7 @@ public class BoardFireFighterBehavior implements BoardBehavior{
public List<Position> updateToNextGeneration() {
List<Position> modifiedPositions = updateFirefighters();
modifiedPositions.addAll(updateFires());
modifiedPositions.addAll(updateClouds());
incrementStep();
return modifiedPositions;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment