예제 #1
0
 public void PrevStatusAnalysis()
 {
     if (Status == cellStatus.UnVisisted)
     {
         Status = cellStatus.Visited;
         return;
     }
     Status = cellStatus.Intersection;
     PaintGM.Instance.ReportIntersection();
 }
예제 #2
0
    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;
        }
    }
예제 #3
0
 public Cell(int c_, int r_, bool hasBomb_)
 {
     c = c_; r = r_; hasBomb = hasBomb_; mark = cellStatus.EMPTY; bombNeighboursCount = 0;
 }