Skip to content
Snippets Groups Projects
Commit 76f0cba5 authored by Yanis O's avatar Yanis O
Browse files

Ajout de la classe EmptySquare

parent 5faed6b8
No related branches found
No related tags found
No related merge requests found
package model;
import util.Position;
public class EmptySquare implements Entity{
private Position position;
public EmptySquare(Position p){
this.position = p;
}
@Override
public void nextTurn(Board<Entity> board) {
return;
}
@Override
public Position getPosition() {
return position;
}
@Override
public void setPosition(Position p) {
this.position = p;
}
}
......@@ -20,7 +20,7 @@ public class FirefighterBoard implements Board<List<ModelElement>> {
private final TargetStrategy targetStrategy = new TargetStrategy();
private List<Position> firefighterPositions;
private Set<Position> firePositions;
private Map<Position, List<Position>> neighbors = new HashMap();
private Map<Position, List<Position>> neighbors = new HashMap<Position, List<Position>>();
private final Position[][] positions;
private int step = 0;
private final Random randomGenerator = new Random();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment