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

Method init

ChessBoard.cpp:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void ChessBoard::init()
41{
42 for(int i = 0; i<32; i++)
43 m_ChessPieces[i].init(i);
44
45 m_ChessSteps.clear(); //重置步数
46 m_nSelectID = -1;
47 m_nCheckedID = -1;
48 m_bIsRed = true;
49 m_bIsOver = false;
50 m_bIsShowStep = true;
51 m_bTimerAutoStarted = false;
52}
53
54bool ChessBoard:: isRed(int id)
55{

Callers 1

loadPuzzleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected