Skip to content
Snippets Groups Projects
Commit e0b89370 authored by Sarah CHERCHEM's avatar Sarah CHERCHEM
Browse files

FirefighterManager : add the methode setFirefighterPositions

parent 3f5cc4c1
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ public class FirefighterManager implements FirefighterBehavior, FirefighterPrope ...@@ -30,6 +30,7 @@ public class FirefighterManager implements FirefighterBehavior, FirefighterPrope
@Override @Override
public void setFirefighterPosition(Position oldPosition, Position newPosition) { public void setFirefighterPosition(Position oldPosition, Position newPosition) {
firefighterPositions.remove(oldPosition);
firefighterPositions.add(newPosition);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment