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