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