| 992 | } |
| 993 | |
| 994 | void ChessBoard::doMoveStone(int moveid, int killid, int row, int col) |
| 995 | { |
| 996 | autoStartTimerIfNeeded(); |
| 997 | saveStep(moveid, killid, row, col, m_ChessSteps); |
| 998 | |
| 999 | killStone(killid); |
| 1000 | moveStone(moveid, row, col); |
| 1001 | whoWin(); |
| 1002 | |
| 1003 | if(killid== -1) |
| 1004 | m_Chessvoice.voiceMove(); //移动音效 |
| 1005 | else |
| 1006 | m_Chessvoice.voiceEat(); //吃子音效 |
| 1007 | |
| 1008 | if(isGeneral()) |
| 1009 | m_Chessvoice.voiceGeneral(); //将军音效 |
| 1010 | } |
| 1011 | |
| 1012 | void ChessBoard::saveStep(int moveid, int killid, int row, int col, QVector<ChessStep*>& steps) |
| 1013 | { |
nothing calls this directly
no test coverage detected