void Redraw_Board() { int i, j; for (i=0; i<NUM_COLS; i++) for (j=0; j<NUM_ROWS; j++) Draw_Piece(board[i][j], i, j); for(i=0; i<BLOCK_SIZE; i++) { Draw_Piece(next_block[i], -1, i); } }
void Piece::Draw() { for (int i = 0; i < PIECE_ALL_NUM; i++) { if (isPlay[i] == false) continue; Draw_Piece(i); } }