public Cell(bool alive, Coordonnate coordonnate, BoardCoordonnates neighborhoodCoords, Rule rules) { this.coordonnate = coordonnate; this.neighborhoodCoords = neighborhoodCoords; this.alive = alive; this.rules = rules; }
public bool Matche(Coordonnate coord) { return(this.coordonnate.CoordX() == coord.CoordX() && this.coordonnate.CoordY() == coord.CoordY()); }
public Cell(bool alive, Coordonnate coordonnate) : this(alive, coordonnate, new Neighborhood(coordonnate), new BasicRules(alive, new Neighborhood(coordonnate))) { }
public Cell(bool alive, Coordonnate coordonnate, BoardCoordonnates neighborhoodCoords) : this(alive, coordonnate, neighborhoodCoords, new BasicRules(alive, neighborhoodCoords)) { }
public Neighborhood(Coordonnate cellCoordonnates) { this.cellCoordonnates = cellCoordonnates; }
public RealCoordonnate(Coordonnate baseCoord, RelativeCoordonnate relativeCoord) { this.baseCoord = baseCoord; this.relativeCoord = relativeCoord; }