@Override
public void selectingTrapRoomsFinished(
List<Integer> trapRooms,
PlanningThread thread
) {
DataMap map = (DataMap)this._map;
List<List<Integer>> components = map.breakToComponents(trapRooms);
for(List<Integer> component : components){
if(component.size() > 1){
((ExecutingMap)map).addGuardPatrol(component);
}else{
map.addCameraToRoom(component.get(0));
}
}
// invalidates the planning thread pointer to show that
// the planning has finished