checks if placing the piece at grid position with the rotation rot would cause a collision concode_field_sep TetrisPiece currentPiece concode_elem_sep int numRows concode_elem_sep int NUM_ROWS concode_elem_sep boolean[][] blockMatrix concode_elem_sep int NUM_COLS concode_elem_sep int[] currentPiecePosition concode_field_sep int getNumRows concode_elem_sep void addNewPiece concode_elem_sep boolean moveDown concode_elem_sep TetrisPiece getCurrentPiece concode_elem_sep int[] getCurrentPieceGridPostition concode_elem_sep void removeLine concode_elem_sep boolean detectOutBounds concode_elem_sep int numberOfFormedLines concode_elem_sep boolean fullLine concode_elem_sep boolean[][] getBlockMatrix concode_elem_sep boolean rotateCW concode_elem_sep void landPiece concode_elem_sep boolean moveRight concode_elem_sep boolean moveLeft concode_elem_sep boolean rotateCCW concode_elem_sep boolean hasBlock concode_elem_sep boolean validMove concode_elem_sep void initBoard concode_elem_sep boolean gameEnd
boolean function ( TetrisPiece arg0 , int arg1 , int arg2 , int arg3 ) { for ( int loc0 = 0 ; loc0 < 4 ; loc0 ++ ) { for ( int loc1 = 0 ; loc1 < 4 ; loc1 ++ ) { if ( arg0 . isFilled ( arg1 , loc0 , loc1 ) ) { if ( blockMatrix [ arg2 + loc0 ] [ arg3 + loc1 ] || blockMatrix [ arg2 ] [ arg3 + loc1 ] ) { return true ; } } } } return false ; }