public void PrevStatusAnalysis() { if (Status == cellStatus.UnVisisted) { Status = cellStatus.Visited; return; } Status = cellStatus.Intersection; PaintGM.Instance.ReportIntersection(); }
internal void ResetToDefault() { if (colorHistory.Count > 1) { image.color = colorHistory.Pop(); } else { image.color = colorHistory.Peek(); } if (Status == cellStatus.Intersection) { Status = cellStatus.Visited; } else { Status = cellStatus.UnVisisted; } }
public Cell(int c_, int r_, bool hasBomb_) { c = c_; r = r_; hasBomb = hasBomb_; mark = cellStatus.EMPTY; bombNeighboursCount = 0; }