Example #1
0
 private void TryRotate(Shape shape)
 {
     if (_gameBoard.CanRotate(shape))
     {
         shape.Rotate();
     }
 }
Example #2
0
 public void Rotate()
 {
     if (_myBoard.CanRotate())
     {
         Orientation = (Orientation + 1) % 4;
         myBox       = PieceData.Rotate(myBox);
     }
 }