| 212 | } |
| 213 | |
| 214 | void TimeControl::initialize() |
| 215 | { |
| 216 | m_expired = false; |
| 217 | m_lastMoveTime = 0; |
| 218 | |
| 219 | if (m_timePerTc != 0) |
| 220 | { |
| 221 | m_timeLeft = m_timePerTc + m_increment; |
| 222 | m_movesLeft = m_movesPerTc; |
| 223 | } |
| 224 | else if (m_timePerMove != 0) |
| 225 | m_timeLeft = m_timePerMove; |
| 226 | } |
| 227 | |
| 228 | bool TimeControl::isInfinite() const |
| 229 | { |
nothing calls this directly
no outgoing calls
no test coverage detected