| 38 | } |
| 39 | |
| 40 | void 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 | |
| 54 | bool ChessBoard:: isRed(int id) |
| 55 | { |