/// <summary> /// Clear all cells. /// </summary> public void Clear() { for (var x = 0; x < Size.Width; x++) { for (var y = 0; y < Size.Height; y++) { CellSet[x, y].Clear(); } } Count = 0; AgeStatistics.Init(Size.Height * Size.Width); }
/// <summary> /// Initialization of inner fields and properties. /// </summary> protected void Init() { CellSet.Init(Size); Count = 0; AgeStatistics.Init(Size.Height * Size.Width); }