예제 #1
0
 private void TryRotate(Shape shape)
 {
     if (_gameBoard.CanRotate(shape))
     {
         shape.Rotate();
     }
 }
예제 #2
0
파일: Piece.cs 프로젝트: lunakv/Skola
 public void Rotate()
 {
     if (_myBoard.CanRotate())
     {
         Orientation = (Orientation + 1) % 4;
         myBox       = PieceData.Rotate(myBox);
     }
 }