Skip to content
Snippets Groups Projects
Commit e35dbf8c authored by dragapsy's avatar dragapsy
Browse files

Tache 5 (Constructeur ColoredCellIterator(Cell startCell)).

parent 428ae57f
No related branches found
No related tags found
No related merge requests found
package model;
import javafx.scene.paint.Color;
import java.awt.*;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
public class ColoredCellIterator implements Iterator<Cell> {
public ColoredCellIterator(SquareCell squareCell) {
private Color color;
private Set<Cell> visitedCells;
private Set<Cell> pendingCells;
private Cell startCell;
public ColoredCellIterator(Cell startCell){
this.startCell=startCell;
visitedCells=new HashSet<>();
this.pendingCells=new HashSet<>();
this.pendingCells.add(startCell);
this.color = startCell.getColor();
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment