Exemple #1
0
 public void Rotate()
 {
     if (_myBoard.CanRotate())
     {
         Orientation = (Orientation + 1) % 4;
         myBox       = PieceData.Rotate(myBox);
     }
 }
Exemple #2
0
 public bool CanRotate()
 {
     return(IsSpaceEmpty(PieceData.Rotate(currentPiece.myBox),
                         currentPiece.ulX, currentPiece.ulY));
 }