Options for the game.
More...
#include <game_options.h>
Options for the game.
Options for the game, such as speed. Some options are set by the user in the options_view}, some are variables obtained by tuning the game.
◆ game_options()
| game_options::game_options |
( |
| ) |
|
◆ get_click_distance()
| auto game_options::get_click_distance |
( |
| ) |
const |
|
inlinenoexcept |
Get the distance the mouse must be maximally in for a click to connect to a piece.
◆ get_damage_per_chess_move()
| auto game_options::get_damage_per_chess_move |
( |
| ) |
const |
|
inlinenoexcept |
Get the damage per chess move that all pieces deal.
◆ get_game_speed()
| auto game_options::get_game_speed |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_message_display_time_secs()
| double game_options::get_message_display_time_secs |
( |
| ) |
const |
|
inlinenoexcept |
How long log messages are displayed.
◆ get_music_volume()
| const auto & game_options::get_music_volume |
( |
| ) |
const |
|
inlinenoexcept |
Get the music volume, as a percentage.
◆ get_show_debug_info()
| auto game_options::get_show_debug_info |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_show_occupied()
| auto game_options::get_show_occupied |
( |
| ) |
const |
|
inlinenoexcept |
Show the squares that are actually occupied by the piecs?
◆ get_show_selected()
| auto game_options::get_show_selected |
( |
| ) |
const |
|
inlinenoexcept |
Are selected units highlighted?
◆ get_sound_effects_volume()
| const volume & game_options::get_sound_effects_volume |
( |
| ) |
const |
|
inlinenoexcept |
Get the sound effects volume.
◆ get_starting_position()
Get the starting position.
◆ reset()
| void game_options::reset |
( |
| ) |
|
Reset all values to defaults.
◆ set_game_speed()
| void game_options::set_game_speed |
( |
const game_speed |
speed | ) |
|
|
inlinenoexcept |
◆ set_music_volume()
| void game_options::set_music_volume |
( |
const volume & |
v | ) |
|
|
inlinenoexcept |
Set the volume, as a percentage.
◆ set_show_debug_info()
| void game_options::set_show_debug_info |
( |
const bool |
b | ) |
|
|
inlinenoexcept |
Set showing the debug info.
◆ set_sound_effects_volume()
| void game_options::set_sound_effects_volume |
( |
const volume & |
v | ) |
|
|
inlinenoexcept |
Set the sound effects volume, as a percentage.
◆ set_starting_position()
Set the starting position.
The documentation for this class was generated from the following files: