#include <iosfwd>
#include <vector>
Go to the source code of this file.
◆ game_speed
The game speed.
The game speed, expressed in human language.
| Enumerator |
|---|
| slowest | |
| slower | |
| slow | |
| normal | |
| fast | |
| faster | |
| fastest | |
◆ get_all_game_speeds()
◆ get_default_game_speed()
Get the default game speed.
◆ get_next()
Get the next game speed, i.e.
when the user presses right
◆ get_previous()
Get the previous game speed, i.e.
when the user presses left
◆ get_speed_multiplier()
| double get_speed_multiplier |
( |
const game_speed |
speed | ) |
|
|
noexcept |
Convert the game speed to a speed multiplier, where game_speed::normal denotes the baseline speed of 1 chess move per second.
◆ operator<<()
| std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const game_speed |
speed |
|
) |
| |
|
noexcept |
◆ test_game_speed()
Test this class and its free functions.
◆ to_human_str()
| std::string to_human_str |
( |
const game_speed |
speed | ) |
|
|
noexcept |
◆ to_str()