Ejemplo n.º 1
0
 private void UpdateBoardMask()
 {
     if (HiddenModel)
     {
         var visiblePoints         = pieceBoard.GetVisiblePoints(MyColor);
         var relativeVisiblePoints = new HashSet <PiecePoint>();
         foreach (var point in visiblePoints)
         {
             var relativePoint = MyColor == PieceColor.Red ? point : point.SymmetryPoint;
             relativeVisiblePoints.Add(relativePoint);
         }
         boardMask.VisiblePoints = relativeVisiblePoints;
     }
 }