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

Method fakeMove

MachineGame.cpp:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void MachineGame::fakeMove(ChessStep *step)
80{
81 if (step->m_nKillID != -1)
82 m_ChessPieces[step->m_nKillID].m_bDead = true;
83
84 m_ChessPieces[step->m_nMoveID].m_nRow = step->m_nRowTo;
85 m_ChessPieces[step->m_nMoveID].m_nCol = step->m_nnColTo;
86 m_bIsRed = !m_bIsRed;
87}
88
89void MachineGame::unFakeMove(ChessStep *step)
90{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected