The Battle for Wesnoth  1.15.1+dev
Classes | Namespaces | Functions
general.hpp File Reference
#include "config.hpp"
#include "terrain/translation.hpp"
#include "utils/make_enum.hpp"
#include <utility>
Include dependency graph for general.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  preferences::base_manager
 

Namespaces

 hotkey
 Keyboard shortcuts for game actions.
 
 preferences
 Modify, read and display user preferences.
 

Functions

 preferences::MAKE_ENUM (SCALING_ALGORITHM,(LINEAR, "linear")(NEAREST_NEIGHBOR, "nn")(XBRZ_LIN, "xbrzlin")(XBRZ_NN, "xbrznn")) extern const SCALING_ALGORITHM default_scaling_algorithm
 
void preferences::write_preferences ()
 
void preferences::set (const std::string &key, const std::string &value)
 
void preferences::set (const std::string &key, char const *value)
 
void preferences::set (const std::string &key, bool value)
 
void preferences::set (const std::string &key, int value)
 
void preferences::set (const std::string &key, const config::attribute_value &value)
 
void preferences::clear (const std::string &key)
 
void preferences::set_child (const std::string &key, const config &val)
 
const configpreferences::get_child (const std::string &key)
 
std::string preferences::get (const std::string &key)
 
std::string preferences::get (const std::string &key, const std::string &def)
 
bool preferences::get (const std::string &key, bool def)
 
config::attribute_value preferences::get_as_attribute (const std::string &key)
 
void preferences::erase (const std::string &key)
 
bool preferences::have_setting (const std::string &key)
 
void preferences::disable_preferences_save ()
 
configpreferences::get_prefs ()
 
std::string preferences::core_id ()
 
void preferences::set_core_id (const std::string &core_id)
 
bool preferences::scroll_to_action ()
 
void preferences::set_scroll_to_action (bool ison)
 
point preferences::resolution ()
 
void preferences::_set_resolution (const point &res)
 
bool preferences::maximized ()
 
void preferences::_set_maximized (bool ison)
 
bool preferences::fullscreen ()
 
void preferences::_set_fullscreen (bool ison)
 
bool preferences::turbo ()
 
void preferences::_set_turbo (bool ison)
 
double preferences::turbo_speed ()
 
void preferences::save_turbo_speed (const double speed)
 
int preferences::font_scaling ()
 
void preferences::set_font_scaling (int scale)
 
int preferences::font_scaled (int size)
 
bool preferences::idle_anim ()
 
void preferences::_set_idle_anim (const bool ison)
 
int preferences::idle_anim_rate ()
 
void preferences::_set_idle_anim_rate (const int rate)
 
std::string preferences::language ()
 
void preferences::set_language (const std::string &s)
 
std::string preferences::gui_theme ()
 
void preferences::set_gui_theme (const std::string &s)
 
bool preferences::sound_on ()
 
bool preferences::set_sound (bool ison)
 
unsigned int preferences::sample_rate ()
 
void preferences::save_sample_rate (const unsigned int rate)
 
std::size_t preferences::sound_buffer_size ()
 
void preferences::save_sound_buffer_size (const std::size_t size)
 
int preferences::sound_volume ()
 
void preferences::set_sound_volume (int vol)
 
int preferences::bell_volume ()
 
void preferences::set_bell_volume (int vol)
 
int preferences::UI_volume ()
 
void preferences::set_UI_volume (int vol)
 
bool preferences::music_on ()
 
bool preferences::set_music (bool ison)
 
int preferences::music_volume ()
 
void preferences::set_music_volume (int vol)
 
bool preferences::stop_music_in_background ()
 
void preferences::set_stop_music_in_background (bool ison)
 
bool preferences::turn_bell ()
 
bool preferences::set_turn_bell (bool ison)
 
bool preferences::UI_sound_on ()
 
bool preferences::set_UI_sound (bool ison)
 
bool preferences::message_bell ()
 
void preferences::load_hotkeys ()
 
void preferences::save_hotkeys ()
 
void preferences::clear_hotkeys ()
 
void preferences::add_alias (const std::string &alias, const std::string &command)
 
const configpreferences::get_alias ()
 
std::string preferences::allied_color ()
 
void preferences::set_allied_color (const std::string &color_id)
 
std::string preferences::enemy_color ()
 
void preferences::set_enemy_color (const std::string &color_id)
 
std::string preferences::unmoved_color ()
 
void preferences::set_unmoved_color (const std::string &color_id)
 
std::string preferences::partial_color ()
 
void preferences::set_partial_color (const std::string &color_id)
 
std::string preferences::moved_color ()
 
void preferences::set_moved_color (const std::string &color_id)
 
bool preferences::show_allied_orb ()
 
void preferences::set_show_allied_orb (bool show_orb)
 
bool preferences::show_enemy_orb ()
 
void preferences::set_show_enemy_orb (bool show_orb)
 
bool preferences::show_moved_orb ()
 
void preferences::set_show_moved_orb (bool show_orb)
 
bool preferences::show_unmoved_orb ()
 
void preferences::set_show_unmoved_orb (bool show_orb)
 
bool preferences::show_partial_orb ()
 
void preferences::set_show_partial_orb (bool show_orb)
 
bool preferences::use_color_cursors ()
 
void preferences::_set_color_cursors (bool value)
 
bool preferences::joystick_support_enabled ()
 
int preferences::joystick_mouse_deadzone ()
 
int preferences::joystick_num_mouse_xaxis ()
 
int preferences::joystick_num_mouse_yaxis ()
 
int preferences::joystick_mouse_xaxis_num ()
 
int preferences::joystick_mouse_yaxis_num ()
 
int preferences::joystick_scroll_deadzone ()
 
int preferences::joystick_num_scroll_xaxis ()
 
int preferences::joystick_num_scroll_yaxis ()
 
int preferences::joystick_scroll_xaxis_num ()
 
int preferences::joystick_scroll_yaxis_num ()
 
int preferences::joystick_cursor_deadzone ()
 
int preferences::joystick_num_cursor_xaxis ()
 
int preferences::joystick_num_cursor_yaxis ()
 
int preferences::joystick_cursor_xaxis_num ()
 
int preferences::joystick_cursor_yaxis_num ()
 
int preferences::joystick_cursor_threshold ()
 
int preferences::joystick_thrusta_deadzone ()
 
int preferences::joystick_num_thrusta_axis ()
 
int preferences::joystick_thrusta_axis_num ()
 
int preferences::joystick_thrustb_deadzone ()
 
int preferences::joystick_num_thrustb_axis ()
 
int preferences::joystick_thrustb_axis_num ()
 
int preferences::scroll_speed ()
 
void preferences::set_scroll_speed (const int new_speed)
 
bool preferences::middle_click_scrolls ()
 
bool preferences::mouse_scroll_enabled ()
 
void preferences::enable_mouse_scroll (bool value)
 
int preferences::mouse_scroll_threshold ()
 Gets the threshold for when to scroll. More...
 
int preferences::draw_delay ()
 
void preferences::set_draw_delay (int value)
 
bool preferences::animate_map ()
 
void preferences::set_animate_map (bool value)
 
bool preferences::animate_water ()
 
void preferences::set_animate_water (bool value)
 
bool preferences::minimap_movement_coding ()
 
void preferences::toggle_minimap_movement_coding ()
 
bool preferences::minimap_terrain_coding ()
 
void preferences::toggle_minimap_terrain_coding ()
 
bool preferences::minimap_draw_units ()
 
void preferences::toggle_minimap_draw_units ()
 
bool preferences::minimap_draw_villages ()
 
void preferences::toggle_minimap_draw_villages ()
 
bool preferences::minimap_draw_terrain ()
 
void preferences::toggle_minimap_draw_terrain ()
 
bool preferences::show_fps ()
 
void preferences::set_show_fps (bool value)
 
bool preferences::ellipses ()
 
void preferences::set_ellipses (bool ison)
 
bool preferences::grid ()
 
void preferences::_set_grid (bool ison)
 
bool preferences::confirm_load_save_from_different_version ()
 
bool preferences::use_twelve_hour_clock_format ()
 
void preferences::set_use_twelve_hour_clock_format (bool value)
 
bool preferences::disable_auto_moves ()
 
void preferences::set_disable_auto_moves (bool value)
 
bool preferences::disable_loadingscreen_animation ()
 
void preferences::set_disable_loadingscreen_animation (bool value)
 
bool preferences::damage_prediction_allow_monte_carlo_simulation ()
 
void preferences::set_damage_prediction_allow_monte_carlo_simulation (bool value)