protected CellComponent(int x, int y)
 {
     this.cellComponents = new List <CellComponent>();
     this.X         = x;
     this.Y         = y;
     this.cellState = new HealthyState();
     cellState.Handle(this);
 }
Example #2
0
 public Cell(int x, int y)
 {
     XCoordinate = x;
     YCoordinate = y;
     State       = new WaterState();
 }