#include <engine.h>
Public Member Functions | |
| void | startClock () |
| Starts clock for given move. | |
| void | stopClock () |
| Stops the clock. | |
| bool | timeUp () |
| Checks the clock. | |
| double | secondsElapsed () |
| Seconds elapsed since last startClock(). | |
| void | setTimeControl (timeControl_e tc, float value) |
| Setting time controls from aei. | |
| float | getTimeControl (timeControl_e tc) |
| Time Control getter. | |
| void | setNoTimeLimit () |
| Sets time unlimited search. | |
| void | resetSettings () |
| Resets temporary settings like noTimeLimit. | |
Private Attributes | |
| Timer | timer |
| float | timeControls_ [TIME_CONTROLS_NUM] |
| bool | noTimeLimit_ |
Accepts time settings and takes care of time management durint the game.
| void TimeManager::setTimeControl | ( | timeControl_e | tc, | |
| float | value | |||
| ) |
Setting time controls from aei.
| tc | Time control identifier - used as index into timeControls array. | |
| value | Value for option in seconds (all controal are aligned to secs). |
| bool TimeManager::timeUp | ( | ) |
Checks the clock.
1.5.7.1