Skip to content
Snippets Groups Projects
Commit a856ed1c authored by LATIOUI's avatar LATIOUI
Browse files

Clean code of the first task.

parent f0040f47
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 13 deletions
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
No preview for this file type
...@@ -38,14 +38,6 @@ public class FirefighterGrid extends Canvas implements Grid<model.BoardElement>{ ...@@ -38,14 +38,6 @@ public class FirefighterGrid extends Canvas implements Grid<model.BoardElement>{
private int columnCount; private int columnCount;
private int rowCount; private int rowCount;
/*@Override
public void repaint(List<Pair<Position, model.BoardElement>> positionedElements) {
}*/
private void clear(List<Pair<Position, BoardElement>> positionedElements) {
}
@Override @Override
public void repaint(HashMap<Position, ArrayList<BoardElement>> elementPositionGrid) { public void repaint(HashMap<Position, ArrayList<BoardElement>> elementPositionGrid) {
...@@ -96,9 +88,4 @@ public class FirefighterGrid extends Canvas implements Grid<model.BoardElement>{ ...@@ -96,9 +88,4 @@ public class FirefighterGrid extends Canvas implements Grid<model.BoardElement>{
getGraphicsContext2D().strokeLine(0, row*squareHeight, getWidth(), row*squareHeight); getGraphicsContext2D().strokeLine(0, row*squareHeight, getWidth(), row*squareHeight);
} }
private void clearSquare(int row, int column){
getGraphicsContext2D().clearRect(row*squareHeight,column*squareWidth,squareHeight,squareWidth);
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment