Tetris Source/OTetrimino.cpp
void OTetrimino::setY(int newY){
	y = newY;
	blocks[0].setY(y);
	blocks[1].setY(y);
	blocks[2].setY(y + BLOCK_LENGTH);
	blocks[3].setY(y + BLOCK_LENGTH);
}
//Sets the y position of the OTetrimino and the y position of its blocks
//TODO: Add orientation specificity, this currently only works for Tetriminos with TOP_FACING_TOP orientation

Sets the y position of the OTetrimino and the y position of its blocks
TODO: Add orientation specificity, this currently only works for Tetriminos with TOP_FACING_TOP orientation
Sets the y position of the OTetrimino and the y position of its blocks TODO : Add orientation specificity this currently only works for Tetriminos with TOP_FACING_TOP orientation
void OTetrimino::setY(int newY){
	y = newY;
	blocks[0].setY(y);
	blocks[1].setY(y);
	blocks[2].setY(y + BLOCK_LENGTH);
	blocks[3].setY(y + BLOCK_LENGTH);
}
void OTetrimino :: setY ( int newY ) { y = newY ; blocks [ 0 ] . setY ( y ) ; blocks [ 1 ] . setY ( y ) ; blocks [ 2 ] . setY ( y + BLOCK_LENGTH ) ; blocks [ 3 ] . setY ( y + BLOCK_LENGTH ) ; }
Sets the y position of the OTetrimino and the y position of its blocks
TODO: Add orientation specificity, this currently only works for Tetriminos with TOP_FACING_TOP orientation
Sets the y position of the OTetrimino and the y position of its blocks TODO : Add orientation specificity this currently only works for Tetriminos with TOP_FACING_TOP orientation