| 31 | } |
| 32 | |
| 33 | void MachineGame::saveStep(int selectID, int checkedID, int row, int col, QVector<ChessStep *> &steps) |
| 34 | { |
| 35 | ChessStep* step = new ChessStep; |
| 36 | step->m_nRowFrom = m_ChessPieces[selectID].m_nRow; |
| 37 | step->m_nColFrom = m_ChessPieces[selectID].m_nCol; |
| 38 | step->m_nRowTo = row; |
| 39 | step->m_nnColTo = col; |
| 40 | step->m_nMoveID = selectID; |
| 41 | step->m_nKillID = checkedID; |
| 42 | steps.append(step); |
| 43 | } |
| 44 | |
| 45 | void MachineGame::getAllMoves(QVector<ChessStep *> &steps, bool forRed) |
| 46 | { |
nothing calls this directly
no outgoing calls
no test coverage detected