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

Method saveStep

ChessBoard.cpp:1012–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010}
1011
1012void ChessBoard::saveStep(int moveid, int killid, int row, int col, QVector<ChessStep*>& steps)
1013{
1014 ChessStep* step = new ChessStep;
1015 step->m_nColFrom = m_ChessPieces[moveid].m_nCol;
1016 step->m_nnColTo = col;
1017 step->m_nRowFrom = m_ChessPieces[moveid].m_nRow;
1018 step->m_nRowTo = row;
1019 step->m_nMoveID = moveid;
1020 step->m_nKillID = killid;
1021
1022 steps.append(step);
1023 textStepRecord= textStep(moveid, row, col);
1024}
1025
1026QString ChessBoard::textStep(int id, int row, int col)
1027{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected