Пример #1
0
 public bool CanSwap(GridCell gCellOther)
 {
     if (!gCellOther)
     {
         return(false);
     }
     if (!gCellOther.IsDraggable())
     {
         return(false);
     }
     if (IsDraggable() && Neighbors.Contain(gCellOther))
     {
         return(true);
     }
     return(false);
 }