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

Method trySelectStone

ChessBoard.cpp:964–977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

962}
963
964void ChessBoard::trySelectStone(int id)
965{
966 if (id == -1) {
967 return;
968 }
969
970 if (!canSelect(id)) {
971 return;
972 }
973
974 m_nSelectID = id;
975 update();
976 m_Chessvoice.voiceSelect();
977}
978
979void ChessBoard::tryMoveStone(int killid, int row, int col)
980{

Callers

nothing calls this directly

Calls 1

voiceSelectMethod · 0.80

Tested by

no test coverage detected