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