MCPcopy Create free account
hub / github.com/XMuli/ChineseChess / clickPieces

Method clickPieces

ChessBoard.cpp:953–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951}
952
953void 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
964void ChessBoard::trySelectStone(int id)
965{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected