Skip to content
Snippets Groups Projects
Commit 497e7107 authored by Yanis O's avatar Yanis O Committed by melizzzz
Browse files

Ajout de la classe EmptySquare

parent 16cb216b
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>> { ...@@ -20,7 +20,7 @@ public class FirefighterBoard implements Board<List<ModelElement>> {
private final TargetStrategy targetStrategy = new TargetStrategy(); private final TargetStrategy targetStrategy = new TargetStrategy();
private List<Position> firefighterPositions; private List<Position> firefighterPositions;
private Set<Position> firePositions; 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 final Position[][] positions;
private int step = 0; private int step = 0;
private final Random randomGenerator = new Random(); 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