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

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