Esempio n. 1
0
        public override void Reveal()
        {
            IsRevealed = true;
            //for (int i = -1 + (_xLeftExist ? 0 : 1); i <= 1 + (_xRightExist ? 0 : -1); i++)
            //{
            //    for (int j = -1 + (_yBelowExist ? 0 : 1); j <= 1 + (_yAboveExist ? 0 : -1); j++)
            //    {
            //        if (!MinesVM.gameMap[_xPosition + i, _yPosition + j].IsRevealed)
            //        {
            //            MinesVM.gameMap[_xPosition + i, _yPosition + j].Reveal();
            //        }
            //    }
            //}

            VisitNeighbours(DoReveal);
            MinesVM.UpdateButton(_xPosition, _yPosition);
        }
Esempio n. 2
0
 public virtual void Reveal()
 {
     IsRevealed = true;
     MinesVM.UpdateButton(_xPosition, _yPosition);
 }