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

Method reset

ChessBoard.cpp:482–495  ·  view source on GitHub ↗

胜负已分,重置

Source from the content-addressed store, hash-verified

480
481// 胜负已分,重置
482void ChessBoard::reset()
483{
484 m_Chessvoice.voiceWin();
485 m_bIsOver = true;
486 //游戏结束 则计时停止 & 计时控制按钮不再可用 直到用户重新游戏
487 if(m_bIsStart)
488 {
489 pauseGameTimer();
490 }
491
492 ui->pushButton_start->setText("开始");
493 ui->pushButton_start->setEnabled(false);
494 m_bTimerAutoStarted = false;
495}
496
497void ChessBoard::startGameTimer()
498{

Callers

nothing calls this directly

Calls 1

voiceWinMethod · 0.80

Tested by

no test coverage detected