| 1010 | } |
| 1011 | |
| 1012 | void ChessBoard::saveStep(int moveid, int killid, int row, int col, QVector<ChessStep*>& steps) |
| 1013 | { |
| 1014 | ChessStep* step = new ChessStep; |
| 1015 | step->m_nColFrom = m_ChessPieces[moveid].m_nCol; |
| 1016 | step->m_nnColTo = col; |
| 1017 | step->m_nRowFrom = m_ChessPieces[moveid].m_nRow; |
| 1018 | step->m_nRowTo = row; |
| 1019 | step->m_nMoveID = moveid; |
| 1020 | step->m_nKillID = killid; |
| 1021 | |
| 1022 | steps.append(step); |
| 1023 | textStepRecord= textStep(moveid, row, col); |
| 1024 | } |
| 1025 | |
| 1026 | QString ChessBoard::textStep(int id, int row, int col) |
| 1027 | { |
nothing calls this directly
no outgoing calls
no test coverage detected