| 951 | } |
| 952 | |
| 953 | void ChessBoard::clickPieces(int id, int &row, int &col) |
| 954 | { |
| 955 | if (this->m_nSelectID == -1) { // 如果点中的棋子之前未被选中 |
| 956 | trySelectStone(id); |
| 957 | } |
| 958 | else { |
| 959 | tryMoveStone(id, row, col); |
| 960 | } |
| 961 | |
| 962 | } |
| 963 | |
| 964 | void ChessBoard::trySelectStone(int id) |
| 965 | { |
nothing calls this directly
no outgoing calls
no test coverage detected