Ejemplo n.º 1
0
 public Cell(bool alive, Coordonnate coordonnate, BoardCoordonnates neighborhoodCoords, Rule rules)
 {
     this.coordonnate        = coordonnate;
     this.neighborhoodCoords = neighborhoodCoords;
     this.alive = alive;
     this.rules = rules;
 }
Ejemplo n.º 2
0
 public bool Matche(Coordonnate coord)
 {
     return(this.coordonnate.CoordX() == coord.CoordX() && this.coordonnate.CoordY() == coord.CoordY());
 }
Ejemplo n.º 3
0
 public Cell(bool alive, Coordonnate coordonnate)
     : this(alive, coordonnate, new Neighborhood(coordonnate), new BasicRules(alive, new Neighborhood(coordonnate)))
 {
 }
Ejemplo n.º 4
0
 public Cell(bool alive, Coordonnate coordonnate, BoardCoordonnates neighborhoodCoords)
     : this(alive, coordonnate, neighborhoodCoords, new BasicRules(alive, neighborhoodCoords))
 {
 }
Ejemplo n.º 5
0
 public Neighborhood(Coordonnate cellCoordonnates)
 {
     this.cellCoordonnates = cellCoordonnates;
 }
Ejemplo n.º 6
0
 public RealCoordonnate(Coordonnate baseCoord, RelativeCoordonnate relativeCoord)
 {
     this.baseCoord     = baseCoord;
     this.relativeCoord = relativeCoord;
 }