The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Classes | Enumerations | Functions | Variables
preferences Namespace Reference

Modify, read and display user preferences. More...

Namespaces

 editor
 
 prv
 

Classes

class  acquaintance
 
struct  admin_authentication_reset
 Used to reset is_authenticated flag after disconnecting. More...
 
struct  base_manager
 
struct  manager
 
class  prefs_event_handler
 

Enumerations

enum  LOBBY_JOINS { SHOW_NONE, SHOW_FRIENDS, SHOW_ALL }
 
enum  DIALOG_OPEN_TO { VIEW_DEFAULT, VIEW_FRIENDS }
 

Functions

bool is_authenticated ()
 
void parse_admin_authentication (const std::string &sender, const std::string &message)
 
static void load_acquaintances ()
 
static void save_acquaintances ()
 
const std::map< std::string,
acquaintance > & 
get_acquaintances ()
 
std::map< std::string,
std::string
get_acquaintances_nice (const std::string &filter)
 
bool add_friend (const std::string &nick, const std::string &notes)
 
bool add_ignore (const std::string &nick, const std::string &reason)
 
bool remove_acquaintance (const std::string &nick)
 
bool is_friend (const std::string &nick)
 
bool is_ignored (const std::string &nick)
 
void add_completed_campaign (const std::string &campaign_id, const std::string &difficulty_level)
 
bool is_campaign_completed (const std::string &campaign_id)
 
bool is_campaign_completed (const std::string &campaign_id, const std::string &difficulty_level)
 
bool parse_should_show_lobby_join (const std::string &sender, const std::string &message)
 
int lobby_joins ()
 
void _set_lobby_joins (int show)
 
bool new_lobby ()
 
const std::vector
< game_config::server_info > & 
server_list ()
 
std::string network_host ()
 
void set_network_host (const std::string &host)
 
unsigned int get_ping_timeout ()
 
std::string campaign_server ()
 
void set_campaign_server (const std::string &host)
 
bool wrap_password ()
 Returns whether the password is stored wrapped in markers. More...
 
void set_wrap_password (bool wrap)
 
bool wrap_login ()
 Returns whether the MP username is stored wrapped in markers. More...
 
void set_wrap_login (bool wrap)
 
static std::string get_system_username ()
 
std::string login ()
 
void set_login (const std::string &username)
 
std::string password ()
 
void set_password (const std::string &password)
 
bool remember_password ()
 
void set_remember_password (bool remember)
 
bool turn_dialog ()
 
void set_turn_dialog (bool ison)
 
bool enable_whiteboard_mode_on_start ()
 
void set_enable_whiteboard_mode_on_start (bool value)
 
bool hide_whiteboard ()
 
void set_hide_whiteboard (bool value)
 
bool show_combat ()
 
bool allow_observers ()
 
void set_allow_observers (bool value)
 
bool registered_users_only ()
 
void set_registered_users_only (bool value)
 
bool shuffle_sides ()
 
void set_shuffle_sides (bool value)
 
std::string random_faction_mode ()
 
void set_random_faction_mode (const std::string &value)
 
bool use_map_settings ()
 
void set_use_map_settings (bool value)
 
int mp_server_warning_disabled ()
 
void set_mp_server_warning_disabled (int value)
 
void set_mp_server_program_name (const std::string &path)
 
std::string get_mp_server_program_name ()
 
bool random_start_time ()
 
void set_random_start_time (bool value)
 
bool fog ()
 
void set_fog (bool value)
 
bool shroud ()
 
void set_shroud (bool value)
 
int turns ()
 
void set_turns (int value)
 
const configoptions ()
 
void set_options (const config &values)
 
bool skip_mp_replay ()
 
void set_skip_mp_replay (bool value)
 
bool blindfold_replay ()
 
void set_blindfold_replay (bool value)
 
bool countdown ()
 
void set_countdown (bool value)
 
int countdown_init_time ()
 
void set_countdown_init_time (int value)
 
int countdown_reservoir_time ()
 
void set_countdown_reservoir_time (int value)
 
int countdown_turn_bonus ()
 
void set_countdown_turn_bonus (int value)
 
int countdown_action_bonus ()
 
void set_countdown_action_bonus (int value)
 
int village_gold ()
 
void set_village_gold (int value)
 
int village_support ()
 
void set_village_support (int value)
 
int xp_modifier ()
 
void set_xp_modifier (int value)
 
std::string era ()
 
void set_era (const std::string &value)
 
std::string level ()
 
void set_level (const std::string &value)
 
int level_type ()
 
void set_level_type (int value)
 
const std::vector< std::string > & modifications (bool mp)
 
void set_modifications (const std::vector< std::string > &value, bool mp)
 
bool show_ai_moves ()
 
void set_show_ai_moves (bool value)
 
void set_show_side_colors (bool value)
 
bool show_side_colors ()
 
void set_save_replays (bool value)
 
bool save_replays ()
 
void set_delete_saves (bool value)
 
bool delete_saves ()
 
void set_ask_delete_saves (bool value)
 
bool ask_delete_saves ()
 
void set_interrupt_when_ally_sighted (bool value)
 
bool interrupt_when_ally_sighted ()
 
int autosavemax ()
 
void set_autosavemax (int value)
 
std::string theme ()
 
void set_theme (const std::string &theme)
 
bool show_floating_labels ()
 
void set_show_floating_labels (bool value)
 
bool message_private ()
 
void set_message_private (bool value)
 
bool show_haloes ()
 
void set_show_haloes (bool value)
 
compression::format save_compression_format ()
 
std::string get_chat_timestamp (const time_t &t)
 
bool chat_timestamping ()
 
void set_chat_timestamping (bool value)
 
int chat_lines ()
 
void set_chat_lines (int lines)
 
void set_chat_message_aging (const int aging)
 
int chat_message_aging ()
 
void set_max_wml_menu_items (int max)
 
int max_wml_menu_items ()
 
bool show_all_units_in_help ()
 
void set_show_all_units_in_help (bool value)
 
std::set< std::string > & encountered_units ()
 
std::set
< t_translation::t_terrain > & 
encountered_terrains ()
 
std::string custom_command ()
 
void set_custom_command (const std::string &command)
 
std::vector< std::string > * get_history (const std::string &id)
 Returns a pointer to the history vector associated with given id making a new one if it doesn't exist. More...
 
bool green_confirm ()
 
bool yellow_confirm ()
 
bool confirm_no_moves ()
 
void encounter_recruitable_units (const std::vector< team > &teams)
 
void encounter_start_units (const unit_map &units)
 
static void encounter_recallable_units (const std::vector< team > &teams)
 
void encounter_map_terrain (const gamemap &map)
 
void encounter_all_content (const game_board &gameboard_)
 
void encounter_recallable_units (std::vector< team > &teams)
 
bool sort_list ()
 
void _set_sort_list (bool sort)
 
bool iconize_list ()
 
void _set_iconize_list (bool sort)
 
bool whisper_friends_only ()
 
void set_whisper_friends_only (bool v)
 
bool auto_open_whisper_windows ()
 
bool playerlist_sort_relation ()
 
void set_playerlist_sort_relation (bool v)
 
bool playerlist_sort_name ()
 
void set_playerlist_sort_name (bool v)
 
bool playerlist_group_players ()
 
bool filter_lobby ()
 
void set_filter_lobby (bool value)
 
bool fi_invert ()
 
void set_fi_invert (bool value)
 
bool fi_vacant_slots ()
 
void set_fi_vacant_slots (bool value)
 
bool fi_friends_in_game ()
 
void set_fi_friends_in_game (bool value)
 
std::string fi_text ()
 
void set_fi_text (const std::string &search_string)
 
void set_auto_open_whisper_windows (bool v)
 
void write_preferences ()
 
void set (const std::string &key, bool value)
 
void set (const std::string &key, int value)
 
void set (const std::string &key, char const *value)
 
void set (const std::string &key, const std::string &value)
 
void clear (const std::string &key)
 
void set_child (const std::string &key, const config &val)
 
const configget_child (const std::string &key)
 
void erase (const std::string &key)
 
bool have_setting (const std::string &key)
 
std::string get (const std::string &key)
 
std::string get (const std::string &key, const std::string &def)
 
bool get (const std::string &key, bool def)
 
void disable_preferences_save ()
 
configget_prefs ()
 
bool show_allied_orb ()
 
void set_show_allied_orb (bool show_orb)
 
bool show_enemy_orb ()
 
void set_show_enemy_orb (bool show_orb)
 
bool show_moved_orb ()
 
void set_show_moved_orb (bool show_orb)
 
bool show_unmoved_orb ()
 
void set_show_unmoved_orb (bool show_orb)
 
bool show_partial_orb ()
 
void set_show_partial_orb (bool show_orb)
 
static std::string fix_orb_color_name (const std::string &color)
 
std::string allied_color ()
 
void set_allied_color (const std::string &color_id)
 
std::string core_id ()
 
void set_core_id (const std::string &core_id)
 
std::string enemy_color ()
 
void set_enemy_color (const std::string &color_id)
 
std::string moved_color ()
 
void set_moved_color (const std::string &color_id)
 
std::string unmoved_color ()
 
void set_unmoved_color (const std::string &color_id)
 
std::string partial_color ()
 
void set_partial_color (const std::string &color_id)
 
bool scroll_to_action ()
 
void set_scroll_to_action (bool ison)
 
int min_allowed_width ()
 
int min_allowed_height ()
 
std::pair< int, intresolution ()
 
bool maximized ()
 
bool fullscreen ()
 
void _set_resolution (const std::pair< int, int > &res)
 
void _set_maximized (bool ison)
 
void _set_fullscreen (bool ison)
 
bool turbo ()
 
void _set_turbo (bool ison)
 
double turbo_speed ()
 
void save_turbo_speed (const double speed)
 
int font_scaling ()
 
void set_font_scaling (int scale)
 
int font_scaled (int size)
 
bool idle_anim ()
 
void _set_idle_anim (const bool ison)
 
int idle_anim_rate ()
 
void _set_idle_anim_rate (const int rate)
 
std::string language ()
 
void set_language (const std::string &s)
 
bool ellipses ()
 
void set_ellipses (bool ison)
 
bool grid ()
 
void _set_grid (bool ison)
 
size_t sound_buffer_size ()
 
void save_sound_buffer_size (const size_t size)
 
int music_volume ()
 
void set_music_volume (int vol)
 
int sound_volume ()
 
void set_sound_volume (int vol)
 
int bell_volume ()
 
void set_bell_volume (int vol)
 
int UI_volume ()
 
void set_UI_volume (int vol)
 
bool turn_bell ()
 
bool set_turn_bell (bool ison)
 
bool UI_sound_on ()
 
bool set_UI_sound (bool ison)
 
bool message_bell ()
 
bool sound_on ()
 
bool set_sound (bool ison)
 
bool music_on ()
 
bool set_music (bool ison)
 
bool joystick_support_enabled ()
 
int joystick_mouse_deadzone ()
 
int joystick_num_mouse_xaxis ()
 
int joystick_mouse_xaxis_num ()
 
int joystick_num_mouse_yaxis ()
 
int joystick_mouse_yaxis_num ()
 
int joystick_scroll_deadzone ()
 
int joystick_cursor_deadzone ()
 
int joystick_thrusta_deadzone ()
 
int joystick_thrustb_deadzone ()
 
int joystick_cursor_threshold ()
 
int joystick_num_scroll_xaxis ()
 
int joystick_scroll_xaxis_num ()
 
int joystick_num_scroll_yaxis ()
 
int joystick_scroll_yaxis_num ()
 
int joystick_num_cursor_xaxis ()
 
int joystick_cursor_xaxis_num ()
 
int joystick_num_cursor_yaxis ()
 
int joystick_cursor_yaxis_num ()
 
int joystick_num_thrusta_axis ()
 
int joystick_thrusta_axis_num ()
 
int joystick_num_thrustb_axis ()
 
int joystick_thrustb_axis_num ()
 
int scroll_speed ()
 
void set_scroll_speed (const int new_speed)
 
bool middle_click_scrolls ()
 
bool mouse_scroll_enabled ()
 
void enable_mouse_scroll (bool value)
 
int mouse_scroll_threshold ()
 Gets the threshold for when to scroll. More...
 
bool animate_map ()
 
bool animate_water ()
 
bool minimap_movement_coding ()
 
void toggle_minimap_movement_coding ()
 
bool minimap_terrain_coding ()
 
void toggle_minimap_terrain_coding ()
 
bool minimap_draw_units ()
 
void toggle_minimap_draw_units ()
 
bool minimap_draw_villages ()
 
void toggle_minimap_draw_villages ()
 
bool minimap_draw_terrain ()
 
void toggle_minimap_draw_terrain ()
 
void set_animate_map (bool value)
 
void set_animate_water (bool value)
 
bool show_standing_animations ()
 
void set_show_standing_animations (bool value)
 
bool show_fps ()
 
void set_show_fps (bool value)
 
int draw_delay ()
 
void set_draw_delay (int value)
 
bool use_color_cursors ()
 
void _set_color_cursors (bool value)
 
void load_hotkeys ()
 
void save_hotkeys ()
 
void clear_hotkeys ()
 
void add_alias (const std::string &alias, const std::string &command)
 
const configget_alias ()
 
unsigned int sample_rate ()
 
void save_sample_rate (const unsigned int rate)
 
bool confirm_load_save_from_different_version ()
 
bool use_twelve_hour_clock_format ()
 
bool disable_auto_moves ()
 
void set_disable_auto_moves (bool value)
 
bool disable_loadingscreen_animation ()
 
void set_disable_loadingscreen_animation (bool value)
 
void set_use_twelve_hour_clock_format (bool value)
 
void set_preference_display_settings ()
 
void show_preferences_dialog (CVideo &video, const config &game_cfg, const DIALOG_OPEN_TO initial_view)
 
void set_turbo (bool ison)
 
void set_turbo_speed (double speed)
 
void set_grid (bool ison)
 
void set_color_cursors (bool value)
 
void set_idle_anim (bool ison)
 
void set_idle_anim_rate (int rate)
 
bool show_theme_dialog (CVideo &video)
 
void show_wesnothd_server_search (CVideo &video)
 

Variables

const int INFINITE_AUTO_SAVES = 61
 
prefs_event_handler event_handler_
 

Detailed Description

Modify, read and display user preferences.

This module contain GUI code to display dialogs regarding user preferences, and functions which read and modify the preferences.

Enumeration Type Documentation

Enumerator
VIEW_DEFAULT 
VIEW_FRIENDS 

Definition at line 25 of file preferences_display.hpp.

Enumerator
SHOW_NONE 
SHOW_FRIENDS 
SHOW_ALL 

Definition at line 64 of file game_preferences.hpp.

Function Documentation

void preferences::_set_color_cursors ( bool  value)

Definition at line 961 of file preferences.cpp.

References set().

Referenced by set_color_cursors().

void preferences::_set_fullscreen ( bool  ison)

Definition at line 393 of file preferences.cpp.

Referenced by CVideo::set_fullscreen().

void preferences::_set_grid ( bool  ison)

Definition at line 483 of file preferences.cpp.

References set().

Referenced by set_grid().

void preferences::_set_iconize_list ( bool  sort)

Definition at line 37 of file lobby_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::_set_idle_anim ( const bool  ison)

Definition at line 443 of file preferences.cpp.

Referenced by set_idle_anim().

void preferences::_set_idle_anim_rate ( const int  rate)

Definition at line 453 of file preferences.cpp.

Referenced by set_idle_anim_rate().

void preferences::_set_lobby_joins ( int  show)

Definition at line 386 of file game_preferences.cpp.

References set(), SHOW_ALL, SHOW_FRIENDS, and SHOW_NONE.

Referenced by gui2::tpreferences::initialize_members().

void preferences::_set_maximized ( bool  ison)
void preferences::_set_resolution ( const std::pair< int, int > &  res)
void preferences::_set_sort_list ( bool  sort)

Definition at line 27 of file lobby_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::_set_turbo ( bool  ison)

Definition at line 407 of file preferences.cpp.

Referenced by set_turbo().

void preferences::add_alias ( const std::string alias,
const std::string command 
)

Definition at line 982 of file preferences.cpp.

References config::child_or_add().

Referenced by events::console_handler::do_set_alias().

void preferences::add_completed_campaign ( const std::string campaign_id,
const std::string difficulty_level 
)

Definition at line 343 of file game_preferences.cpp.

Referenced by game_launcher::launch_game().

bool preferences::add_friend ( const std::string nick,
const std::string notes 
)
bool preferences::add_ignore ( const std::string nick,
const std::string reason 
)
std::string preferences::allied_color ( )
bool preferences::allow_observers ( )

Definition at line 596 of file game_preferences.cpp.

References get().

Referenced by ng::configure_engine::allow_observers_default().

bool preferences::animate_map ( )
bool preferences::animate_water ( )
bool preferences::ask_delete_saves ( )

Definition at line 936 of file game_preferences.cpp.

References get().

Referenced by gui2::tgame_load::delete_button_callback(), and gui2::get_dont_ask_again().

bool preferences::auto_open_whisper_windows ( )
int preferences::autosavemax ( )
int preferences::bell_volume ( )
bool preferences::blindfold_replay ( )

Definition at line 747 of file game_preferences.cpp.

References get().

Referenced by enter_wait_mode(), and mp::lobby::lobby().

std::string preferences::campaign_server ( )

Definition at line 439 of file game_preferences.cpp.

References get().

Referenced by ad_hoc_addon_fetch_session(), and manage_addons().

int preferences::chat_lines ( )
int preferences::chat_message_aging ( )

Definition at line 1074 of file game_preferences.cpp.

References get().

Referenced by display_chat_manager::prune_chat_messages().

bool preferences::chat_timestamping ( )

Definition at line 1051 of file game_preferences.cpp.

References get().

Referenced by get_chat_timestamp(), and gui2::tpreferences::initialize_members().

void preferences::clear ( const std::string key)
void preferences::clear_hotkeys ( )

Definition at line 976 of file preferences.cpp.

References hotkey::reset_default_hotkeys().

bool preferences::confirm_load_save_from_different_version ( )

Definition at line 1010 of file preferences.cpp.

Referenced by savegame::loadgame::check_version_compatibility().

bool preferences::confirm_no_moves ( )

Definition at line 1137 of file game_preferences.cpp.

References get().

Referenced by events::menu_handler::end_turn().

std::string preferences::core_id ( )
bool preferences::countdown ( )
int preferences::countdown_action_bonus ( )

Definition at line 800 of file game_preferences.cpp.

References get().

Referenced by ng::configure_engine::mp_countdown_action_bonus_default().

int preferences::countdown_init_time ( )

Definition at line 767 of file game_preferences.cpp.

References get().

Referenced by ng::configure_engine::mp_countdown_init_time_default().

int preferences::countdown_reservoir_time ( )

Definition at line 778 of file game_preferences.cpp.

References get().

Referenced by ng::configure_engine::mp_countdown_reservoir_time_default().

int preferences::countdown_turn_bonus ( )

Definition at line 789 of file game_preferences.cpp.

References get().

Referenced by ng::configure_engine::mp_countdown_turn_bonus_default().

std::string preferences::custom_command ( )

Definition at line 1105 of file game_preferences.cpp.

References get().

Referenced by events::menu_handler::custom_command().

bool preferences::delete_saves ( )
bool preferences::disable_auto_moves ( )
bool preferences::disable_loadingscreen_animation ( )

Definition at line 1030 of file preferences.cpp.

Referenced by gui2::tloadscreen::display().

void preferences::disable_preferences_save ( )

Definition at line 222 of file preferences.cpp.

Referenced by game_launcher::game_launcher().

int preferences::draw_delay ( )

Definition at line 946 of file preferences.cpp.

Referenced by display::draw_wrap().

bool preferences::ellipses ( )

Definition at line 468 of file preferences.cpp.

Referenced by events::menu_handler::toggle_ellipses().

void preferences::enable_mouse_scroll ( bool  value)

Definition at line 846 of file preferences.cpp.

References set().

Referenced by hotkey::execute_command().

bool preferences::enable_whiteboard_mode_on_start ( )

Definition at line 571 of file game_preferences.cpp.

References get().

Referenced by gui2::tpreferences::initialize_members(), and wb::manager::on_init_side().

void preferences::encounter_all_content ( const game_board gameboard_)
void preferences::encounter_map_terrain ( const gamemap map)
void preferences::encounter_recallable_units ( std::vector< team > &  teams)
static void preferences::encounter_recallable_units ( const std::vector< team > &  teams)
static

Definition at line 1160 of file game_preferences.cpp.

Referenced by encounter_all_content().

void preferences::encounter_recruitable_units ( const std::vector< team > &  teams)

Definition at line 1145 of file game_preferences.cpp.

Referenced by encounter_all_content().

void preferences::encounter_start_units ( const unit_map units)

Definition at line 1153 of file game_preferences.cpp.

References unit_map::begin(), and unit_map::end().

Referenced by encounter_all_content().

std::set< t_translation::t_terrain > & preferences::encountered_terrains ( )
std::set< std::string > & preferences::encountered_units ( )
std::string preferences::enemy_color ( )
std::string preferences::era ( )
void preferences::erase ( const std::string key)
bool preferences::fi_friends_in_game ( )

Definition at line 112 of file lobby_preferences.cpp.

References get().

Referenced by mp::gamebrowser::game_matches_filter(), and mp::lobby::lobby().

bool preferences::fi_invert ( )

Definition at line 92 of file lobby_preferences.cpp.

References get().

Referenced by mp::lobby::lobby(), and mp::gamebrowser::set_game_items().

std::string preferences::fi_text ( )

Definition at line 122 of file lobby_preferences.cpp.

References get().

Referenced by mp::gamebrowser::game_matches_filter().

bool preferences::fi_vacant_slots ( )

Definition at line 102 of file lobby_preferences.cpp.

References get().

Referenced by mp::gamebrowser::game_matches_filter(), and mp::lobby::lobby().

bool preferences::filter_lobby ( )

Definition at line 82 of file lobby_preferences.cpp.

References get().

Referenced by mp::lobby::lobby(), and mp::gamebrowser::set_game_items().

static std::string preferences::fix_orb_color_name ( const std::string color)
static

Definition at line 268 of file preferences.cpp.

Referenced by allied_color(), enemy_color(), moved_color(), partial_color(), and unmoved_color().

bool preferences::fog ( )
int preferences::font_scaled ( int  size)
int preferences::font_scaling ( )

Definition at line 422 of file preferences.cpp.

Referenced by font_scaled(), and gui2::tpreferences::initialize_members().

bool preferences::fullscreen ( )
std::string preferences::get ( const std::string key)

Definition at line 209 of file preferences.cpp.

Referenced by allow_observers(), animate_map(), animate_water(), ask_delete_saves(), auto_open_whisper_windows(), preferences::editor::auto_update_transitions(), autosavemax(), blindfold_replay(), campaign_server(), chat_lines(), chat_message_aging(), chat_timestamping(), confirm_no_moves(), countdown(), countdown_action_bonus(), countdown_init_time(), countdown_reservoir_time(), countdown_turn_bonus(), custom_command(), preferences::editor::default_dir(), delete_saves(), preferences::editor::draw_hex_coordinates(), preferences::editor::draw_terrain_codes(), enable_whiteboard_mode_on_start(), era(), fi_friends_in_game(), fi_invert(), fi_text(), fi_vacant_slots(), filter_lobby(), fog(), get_mp_server_program_name(), get_ping_timeout(), gui2::tadvanced_graphics_options::get_scale_pref(), green_confirm(), controller_base::handle_scroll(), hide_whiteboard(), iconize_list(), interrupt_when_ally_sighted(), level(), level_type(), lobby_joins(), login(), preferences::manager::manager(), max_wml_menu_items(), minimap_draw_terrain(), minimap_draw_units(), minimap_draw_villages(), minimap_movement_coding(), minimap_terrain_coding(), mp_server_warning_disabled(), network_host(), password(), playerlist_group_players(), playerlist_sort_name(), playerlist_sort_relation(), random_faction_mode(), random_start_time(), registered_users_only(), remember_password(), save_compression_format(), save_replays(), set_preference_display_settings(), gui2::setup_pref_toggle_button(), show_ai_moves(), show_all_units_in_help(), show_combat(), show_floating_labels(), show_side_colors(), show_standing_animations(), shroud(), shuffle_sides(), skip_mp_replay(), sort_list(), theme(), turn_dialog(), turns(), image::update_from_preferences(), use_map_settings(), village_gold(), village_support(), whisper_friends_only(), wrap_login(), wrap_password(), xp_modifier(), and yellow_confirm().

std::string preferences::get ( const std::string key,
const std::string def 
)

Definition at line 213 of file preferences.cpp.

bool preferences::get ( const std::string key,
bool  def 
)

Definition at line 217 of file preferences.cpp.

const std::map< std::string, acquaintance > & preferences::get_acquaintances ( )
std::map< std::string, std::string > preferences::get_acquaintances_nice ( const std::string filter)

Definition at line 267 of file game_preferences.cpp.

References i, and load_acquaintances().

Referenced by play_controller::tab().

const config & preferences::get_alias ( )

Definition at line 989 of file preferences.cpp.

References get_child().

Referenced by events::console_handler::init_map().

std::string preferences::get_chat_timestamp ( const time_t &  t)
const config & preferences::get_child ( const std::string key)
std::vector< std::string > * preferences::get_history ( const std::string id)

Returns a pointer to the history vector associated with given id making a new one if it doesn't exist.

Todo:
FIXME only used for gui2. Could be used for the above histories.

Definition at line 1119 of file game_preferences.cpp.

Referenced by gui2::ttext_history::get_history().

std::string preferences::get_mp_server_program_name ( )

Definition at line 666 of file game_preferences.cpp.

References get().

Referenced by show_wesnothd_server_search(), and game_launcher::start_wesnothd().

unsigned int preferences::get_ping_timeout ( )

Definition at line 434 of file game_preferences.cpp.

References get().

Referenced by open_connection().

config * preferences::get_prefs ( )

Definition at line 226 of file preferences.cpp.

Referenced by load_acquaintances(), save_acquaintances(), and server_list().

static std::string preferences::get_system_username ( )
static

Definition at line 477 of file game_preferences.cpp.

References login(), and unicode_cast().

Referenced by login().

bool preferences::green_confirm ( )

Definition at line 1123 of file game_preferences.cpp.

References get().

Referenced by events::menu_handler::end_turn().

bool preferences::grid ( )
bool preferences::have_setting ( const std::string key)

Definition at line 205 of file preferences.cpp.

Referenced by wrap_login(), and wrap_password().

bool preferences::hide_whiteboard ( )

Definition at line 581 of file game_preferences.cpp.

References get().

Referenced by gui2::tpreferences::initialize_members().

bool preferences::iconize_list ( )

Definition at line 32 of file lobby_preferences.cpp.

References get().

Referenced by mp::ui::gamelist_updated(), and gui2::tpreferences::initialize_members().

bool preferences::idle_anim ( )

Definition at line 438 of file preferences.cpp.

Referenced by gui2::tpreferences::initialize_members().

int preferences::idle_anim_rate ( )

Definition at line 448 of file preferences.cpp.

Referenced by display::display(), and gui2::tpreferences::initialize_members().

bool preferences::interrupt_when_ally_sighted ( )

Definition at line 946 of file game_preferences.cpp.

References get().

Referenced by gui2::tpreferences::initialize_members(), and actions::move_unit_and_record().

bool preferences::is_authenticated ( )
bool preferences::is_campaign_completed ( const std::string campaign_id)
bool preferences::is_campaign_completed ( const std::string campaign_id,
const std::string difficulty_level 
)

Definition at line 351 of file game_preferences.cpp.

bool preferences::is_friend ( const std::string nick)
bool preferences::is_ignored ( const std::string nick)
int preferences::joystick_cursor_deadzone ( )

Definition at line 725 of file preferences.cpp.

Referenced by joystick_manager::update_highlighted_hex().

int preferences::joystick_cursor_threshold ( )

Definition at line 743 of file preferences.cpp.

Referenced by joystick_manager::update_highlighted_hex().

int preferences::joystick_cursor_xaxis_num ( )
int preferences::joystick_cursor_yaxis_num ( )
int preferences::joystick_mouse_deadzone ( )

Definition at line 689 of file preferences.cpp.

Referenced by joystick_manager::get_mouse_axis_pair().

int preferences::joystick_mouse_xaxis_num ( )

Definition at line 701 of file preferences.cpp.

Referenced by joystick_manager::get_mouse_axis_pair().

int preferences::joystick_mouse_yaxis_num ( )

Definition at line 713 of file preferences.cpp.

Referenced by joystick_manager::get_mouse_axis_pair().

int preferences::joystick_num_cursor_xaxis ( )
int preferences::joystick_num_cursor_yaxis ( )
int preferences::joystick_num_mouse_xaxis ( )

Definition at line 695 of file preferences.cpp.

Referenced by joystick_manager::get_mouse_axis_pair().

int preferences::joystick_num_mouse_yaxis ( )

Definition at line 707 of file preferences.cpp.

Referenced by joystick_manager::get_mouse_axis_pair().

int preferences::joystick_num_scroll_xaxis ( )

Definition at line 749 of file preferences.cpp.

Referenced by joystick_manager::get_scroll_axis_pair().

int preferences::joystick_num_scroll_yaxis ( )

Definition at line 761 of file preferences.cpp.

Referenced by joystick_manager::get_scroll_axis_pair().

int preferences::joystick_num_thrusta_axis ( )

Definition at line 797 of file preferences.cpp.

Referenced by joystick_manager::get_thrusta_axis().

int preferences::joystick_num_thrustb_axis ( )

Definition at line 809 of file preferences.cpp.

Referenced by joystick_manager::get_thrustb_axis().

int preferences::joystick_scroll_deadzone ( )

Definition at line 719 of file preferences.cpp.

Referenced by joystick_manager::get_scroll_axis_pair().

int preferences::joystick_scroll_xaxis_num ( )

Definition at line 755 of file preferences.cpp.

Referenced by joystick_manager::get_scroll_axis_pair().

int preferences::joystick_scroll_yaxis_num ( )

Definition at line 767 of file preferences.cpp.

Referenced by joystick_manager::get_scroll_axis_pair().

bool preferences::joystick_support_enabled ( )
int preferences::joystick_thrusta_axis_num ( )

Definition at line 803 of file preferences.cpp.

Referenced by joystick_manager::get_thrusta_axis().

int preferences::joystick_thrusta_deadzone ( )

Definition at line 731 of file preferences.cpp.

Referenced by joystick_manager::get_thrusta_axis().

int preferences::joystick_thrustb_axis_num ( )

Definition at line 815 of file preferences.cpp.

Referenced by joystick_manager::get_thrustb_axis().

int preferences::joystick_thrustb_deadzone ( )

Definition at line 737 of file preferences.cpp.

Referenced by joystick_manager::get_thrustb_axis().

std::string preferences::language ( )

Definition at line 458 of file preferences.cpp.

Referenced by get_locale().

std::string preferences::level ( )

Definition at line 851 of file game_preferences.cpp.

References get().

Referenced by mp::create::create().

int preferences::level_type ( )

Definition at line 861 of file game_preferences.cpp.

References get().

Referenced by mp::create::create().

static void preferences::load_acquaintances ( )
static
void preferences::load_hotkeys ( )

Definition at line 966 of file preferences.cpp.

References hotkey::load_hotkeys().

Referenced by do_gameloop().

int preferences::lobby_joins ( )
std::string preferences::login ( )
int preferences::max_wml_menu_items ( )

Definition at line 1084 of file game_preferences.cpp.

References get().

Referenced by wmi_pager::get_items().

bool preferences::maximized ( )

Definition at line 372 of file preferences.cpp.

References fullscreen().

Referenced by CVideo::init_window(), and CVideo::set_fullscreen().

bool preferences::message_bell ( )

Definition at line 626 of file preferences.cpp.

Referenced by do_replay_handle(), and turn_info::process_network_data().

bool preferences::message_private ( )

Definition at line 997 of file game_preferences.cpp.

Referenced by events::menu_handler::speak().

bool preferences::middle_click_scrolls ( )
int preferences::min_allowed_height ( )
int preferences::min_allowed_width ( )
bool preferences::minimap_draw_terrain ( )
bool preferences::minimap_draw_units ( )
bool preferences::minimap_draw_villages ( )
bool preferences::minimap_movement_coding ( )
bool preferences::minimap_terrain_coding ( )
const std::vector< std::string > & preferences::modifications ( bool  mp)
bool preferences::mouse_scroll_enabled ( )

Definition at line 841 of file preferences.cpp.

Referenced by hotkey::execute_command(), and controller_base::handle_scroll().

int preferences::mouse_scroll_threshold ( )

Gets the threshold for when to scroll.

This scrolling happens when the mouse is in the application and near the border.

Definition at line 851 of file preferences.cpp.

Referenced by controller_base::handle_scroll(), and preferences::base_manager::~base_manager().

std::string preferences::moved_color ( )
int preferences::mp_server_warning_disabled ( )

Definition at line 644 of file game_preferences.cpp.

References get().

Referenced by gui2::get_do_not_show_again(), and game_launcher::play_multiplayer().

bool preferences::music_on ( )
int preferences::music_volume ( )
std::string preferences::network_host ( )

Definition at line 419 of file game_preferences.cpp.

References get(), and server_list().

Referenced by game_launcher::game_launcher(), and open_connection().

bool preferences::new_lobby ( )

Definition at line 397 of file game_preferences.cpp.

Referenced by enter_lobby_mode().

const config & preferences::options ( )
void preferences::parse_admin_authentication ( const std::string sender,
const std::string message 
)
bool preferences::parse_should_show_lobby_join ( const std::string sender,
const std::string message 
)
std::string preferences::partial_color ( )
std::string preferences::password ( )
bool preferences::playerlist_group_players ( )

Definition at line 77 of file lobby_preferences.cpp.

References get().

Referenced by gui2::tlobby_main::update_playerlist().

bool preferences::playerlist_sort_name ( )

Definition at line 67 of file lobby_preferences.cpp.

References get().

Referenced by gui2::tlobby_main::pre_show().

bool preferences::playerlist_sort_relation ( )

Definition at line 57 of file lobby_preferences.cpp.

References get().

Referenced by gui2::tlobby_main::pre_show().

std::string preferences::random_faction_mode ( )
bool preferences::random_start_time ( )
bool preferences::registered_users_only ( )

Definition at line 606 of file game_preferences.cpp.

References get().

Referenced by ng::configure_engine::registered_users_only_default().

bool preferences::remember_password ( )
bool preferences::remove_acquaintance ( const std::string nick)
std::pair< int, int > preferences::resolution ( )
unsigned int preferences::sample_rate ( )

Definition at line 994 of file preferences.cpp.

Referenced by sound::init_sound(), and save_sample_rate().

static void preferences::save_acquaintances ( )
static
compression::format preferences::save_compression_format ( )
void preferences::save_hotkeys ( )

Definition at line 971 of file preferences.cpp.

References hotkey::save_hotkeys().

bool preferences::save_replays ( )
void preferences::save_sample_rate ( const unsigned int  rate)

Definition at line 999 of file preferences.cpp.

References int(), sound::reset_sound(), and sample_rate().

void preferences::save_sound_buffer_size ( const size_t  size)

Definition at line 501 of file preferences.cpp.

References sound::reset_sound(), and set().

void preferences::save_turbo_speed ( const double  speed)

Definition at line 417 of file preferences.cpp.

Referenced by set_turbo_speed().

int preferences::scroll_speed ( )
bool preferences::scroll_to_action ( )

Definition at line 339 of file preferences.cpp.

Referenced by display::scroll_to_xy().

const std::vector< game_config::server_info > & preferences::server_list ( )
void preferences::set ( const std::string key,
bool  value 
)

Definition at line 166 of file preferences.cpp.

Referenced by _set_color_cursors(), _set_grid(), _set_iconize_list(), _set_lobby_joins(), _set_resolution(), _set_sort_list(), enable_mouse_scroll(), gui2::tadvanced_graphics_options::get_scale_pref(), gui2::tpreferences::initialize_members(), save_sound_buffer_size(), set_allow_observers(), set_animate_map(), set_animate_water(), set_ask_delete_saves(), preferences::editor::set_auto_update_transitions(), set_autosavemax(), set_blindfold_replay(), set_campaign_server(), set_chat_lines(), set_chat_message_aging(), set_chat_timestamping(), set_countdown(), set_countdown_action_bonus(), set_countdown_init_time(), set_countdown_reservoir_time(), set_countdown_turn_bonus(), set_custom_command(), set_delete_saves(), set_disable_auto_moves(), set_disable_loadingscreen_animation(), preferences::editor::set_draw_hex_coordinates(), preferences::editor::set_draw_terrain_codes(), set_ellipses(), set_enable_whiteboard_mode_on_start(), set_era(), set_fi_friends_in_game(), set_fi_invert(), set_fi_text(), set_fi_vacant_slots(), set_filter_lobby(), set_fog(), set_hide_whiteboard(), set_interrupt_when_ally_sighted(), set_language(), set_level(), set_level_type(), set_login(), set_max_wml_menu_items(), set_modifications(), set_mp_server_program_name(), set_mp_server_warning_disabled(), set_music(), set_network_host(), set_password(), set_playerlist_sort_name(), set_playerlist_sort_relation(), gui2::set_pref_and_button(), set_random_faction_mode(), set_random_start_time(), set_registered_users_only(), set_remember_password(), set_save_replays(), set_show_ai_moves(), set_show_all_units_in_help(), set_show_floating_labels(), set_show_haloes(), set_show_side_colors(), set_show_standing_animations(), set_shroud(), set_shuffle_sides(), set_skip_mp_replay(), set_sound(), set_theme(), set_turn_bell(), set_turn_dialog(), set_turns(), set_UI_sound(), set_use_map_settings(), set_village_gold(), set_village_support(), set_whisper_friends_only(), set_wrap_login(), set_wrap_password(), set_xp_modifier(), gui2::setup_item(), gui2::setup_pref_toggle_button(), toggle_minimap_draw_terrain(), toggle_minimap_draw_units(), toggle_minimap_draw_villages(), toggle_minimap_movement_coding(), toggle_minimap_terrain_coding(), gui2::tadvanced_graphics_options::update_scale_case(), and preferences::manager::~manager().

void preferences::set ( const std::string key,
int  value 
)

Definition at line 171 of file preferences.cpp.

void preferences::set ( const std::string key,
char const *  value 
)

Definition at line 176 of file preferences.cpp.

void preferences::set ( const std::string key,
const std::string value 
)

Definition at line 181 of file preferences.cpp.

void preferences::set_allied_color ( const std::string color_id)

Definition at line 285 of file preferences.cpp.

Referenced by gui2::tselect_orb_colors::post_show().

void preferences::set_allow_observers ( bool  value)

Definition at line 601 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_animate_map ( bool  value)

Definition at line 916 of file preferences.cpp.

References set().

Referenced by gui2::tpreferences::animate_map_toggle_callback(), and hotkey::execute_command().

void preferences::set_animate_water ( bool  value)

Definition at line 921 of file preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_ask_delete_saves ( bool  value)

Definition at line 931 of file game_preferences.cpp.

References set().

Referenced by gui2::set_dont_ask_again().

void preferences::set_auto_open_whisper_windows ( bool  v)
void preferences::set_autosavemax ( int  value)

Definition at line 956 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::max_autosaves_slider_callback().

void preferences::set_bell_volume ( int  vol)

Definition at line 553 of file preferences.cpp.

References bell_volume(), and sound::set_bell_volume().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_blindfold_replay ( bool  value)

Definition at line 752 of file game_preferences.cpp.

References set().

Referenced by mp::lobby::process_event_impl().

void preferences::set_campaign_server ( const std::string host)

Definition at line 448 of file game_preferences.cpp.

References set().

void preferences::set_chat_lines ( int  lines)

Definition at line 1064 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_chat_message_aging ( const int  aging)

Definition at line 1069 of file game_preferences.cpp.

References set().

void preferences::set_chat_timestamping ( bool  value)

Definition at line 1055 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_child ( const std::string key,
const config val 
)

Definition at line 191 of file preferences.cpp.

Referenced by set_options(), and preferences::manager::~manager().

void preferences::set_color_cursors ( bool  value)

Definition at line 95 of file preferences_display.cpp.

References _set_color_cursors(), and cursor::set().

Referenced by set_preference_display_settings().

void preferences::set_core_id ( const std::string core_id)
void preferences::set_countdown ( bool  value)

Definition at line 762 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_countdown_action_bonus ( int  value)

Definition at line 806 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_countdown_init_time ( int  value)

Definition at line 773 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_countdown_reservoir_time ( int  value)

Definition at line 784 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_countdown_turn_bonus ( int  value)

Definition at line 795 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_custom_command ( const std::string command)

Definition at line 1109 of file game_preferences.cpp.

References set().

Referenced by events::console_handler::do_custom().

void preferences::set_delete_saves ( bool  value)

Definition at line 921 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_disable_auto_moves ( bool  value)

Definition at line 1025 of file preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_disable_loadingscreen_animation ( bool  value)

Definition at line 1035 of file preferences.cpp.

References set().

void preferences::set_draw_delay ( int  value)

Definition at line 951 of file preferences.cpp.

Referenced by game_launcher::game_launcher().

void preferences::set_ellipses ( bool  ison)

Definition at line 473 of file preferences.cpp.

References set().

Referenced by events::menu_handler::toggle_ellipses().

void preferences::set_enable_whiteboard_mode_on_start ( bool  value)

Definition at line 576 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_enemy_color ( const std::string color_id)

Definition at line 305 of file preferences.cpp.

Referenced by gui2::tselect_orb_colors::post_show().

void preferences::set_era ( const std::string value)

Definition at line 846 of file game_preferences.cpp.

References set().

Referenced by mp::create::~create().

void preferences::set_fi_friends_in_game ( bool  value)

Definition at line 117 of file lobby_preferences.cpp.

References set().

Referenced by mp::lobby::process_event_impl().

void preferences::set_fi_invert ( bool  value)

Definition at line 97 of file lobby_preferences.cpp.

References set().

Referenced by mp::lobby::process_event_impl().

void preferences::set_fi_text ( const std::string search_string)

Definition at line 127 of file lobby_preferences.cpp.

References set().

Referenced by mp::lobby::process_event_impl().

void preferences::set_fi_vacant_slots ( bool  value)

Definition at line 107 of file lobby_preferences.cpp.

References set().

Referenced by mp::lobby::process_event_impl().

void preferences::set_filter_lobby ( bool  value)

Definition at line 87 of file lobby_preferences.cpp.

References set().

Referenced by mp::lobby::process_event_impl().

void preferences::set_fog ( bool  value)

Definition at line 686 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_font_scaling ( int  scale)

Definition at line 428 of file preferences.cpp.

Referenced by gui2::tpreferences::post_show().

void preferences::set_grid ( bool  ison)
void preferences::set_hide_whiteboard ( bool  value)

Definition at line 586 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_idle_anim ( bool  ison)
void preferences::set_idle_anim_rate ( int  rate)
void preferences::set_interrupt_when_ally_sighted ( bool  value)

Definition at line 941 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_language ( const std::string s)

Definition at line 463 of file preferences.cpp.

References set().

Referenced by gui2::tlanguage_selection::post_show().

void preferences::set_level ( const std::string value)
void preferences::set_level_type ( int  value)

Definition at line 866 of file game_preferences.cpp.

References set().

Referenced by mp::create::~create().

void preferences::set_login ( const std::string username)
void preferences::set_max_wml_menu_items ( int  max)

Definition at line 1079 of file game_preferences.cpp.

References set().

void preferences::set_message_private ( bool  value)
void preferences::set_modifications ( const std::vector< std::string > &  value,
bool  mp 
)

Definition at line 879 of file game_preferences.cpp.

References utils::join(), and set().

Referenced by gui2::tcampaign_selection::post_show(), and mp::create::~create().

void preferences::set_moved_color ( const std::string color_id)

Definition at line 315 of file preferences.cpp.

Referenced by gui2::tselect_orb_colors::post_show().

void preferences::set_mp_server_program_name ( const std::string path)

Definition at line 654 of file game_preferences.cpp.

References clear(), and set().

Referenced by show_wesnothd_server_search(), and game_launcher::start_wesnothd().

void preferences::set_mp_server_warning_disabled ( int  value)

Definition at line 649 of file game_preferences.cpp.

References set().

Referenced by gui2::set_do_not_show_again().

bool preferences::set_music ( bool  ison)
void preferences::set_music_volume ( int  vol)
void preferences::set_network_host ( const std::string host)

Definition at line 429 of file game_preferences.cpp.

References set().

Referenced by open_connection().

void preferences::set_options ( const config values)

Definition at line 731 of file game_preferences.cpp.

References set_child().

Referenced by mp::configure::~configure().

void preferences::set_partial_color ( const std::string color_id)

Definition at line 335 of file preferences.cpp.

Referenced by gui2::tselect_orb_colors::post_show().

void preferences::set_password ( const std::string password)
void preferences::set_playerlist_sort_name ( bool  v)

Definition at line 72 of file lobby_preferences.cpp.

References set().

Referenced by gui2::tlobby_main::player_filter_callback().

void preferences::set_playerlist_sort_relation ( bool  v)

Definition at line 62 of file lobby_preferences.cpp.

References set().

Referenced by gui2::tlobby_main::player_filter_callback().

void preferences::set_preference_display_settings ( )
void preferences::set_random_faction_mode ( const std::string value)

Definition at line 630 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_random_start_time ( bool  value)

Definition at line 676 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_registered_users_only ( bool  value)

Definition at line 611 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_remember_password ( bool  remember)
void preferences::set_save_replays ( bool  value)

Definition at line 911 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_scroll_speed ( const int  new_speed)

Definition at line 830 of file preferences.cpp.

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_scroll_to_action ( bool  ison)

Definition at line 344 of file preferences.cpp.

void preferences::set_show_ai_moves ( bool  value)

Definition at line 896 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_show_all_units_in_help ( bool  value)

Definition at line 1093 of file game_preferences.cpp.

References set().

void preferences::set_show_allied_orb ( bool  show_orb)

Definition at line 235 of file preferences.cpp.

Referenced by gui2::tselect_orb_colors::post_show().

void preferences::set_show_enemy_orb ( bool  show_orb)

Definition at line 242 of file preferences.cpp.

Referenced by gui2::tselect_orb_colors::post_show().

void preferences::set_show_floating_labels ( bool  value)

Definition at line 992 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_show_fps ( bool  value)
void preferences::set_show_haloes ( bool  value)
void preferences::set_show_moved_orb ( bool  show_orb)

Definition at line 249 of file preferences.cpp.

Referenced by gui2::tselect_orb_colors::post_show().

void preferences::set_show_partial_orb ( bool  show_orb)

Definition at line 263 of file preferences.cpp.

Referenced by gui2::tselect_orb_colors::post_show().

void preferences::set_show_side_colors ( bool  value)

Definition at line 901 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_show_standing_animations ( bool  value)

Definition at line 931 of file preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_show_unmoved_orb ( bool  show_orb)

Definition at line 256 of file preferences.cpp.

Referenced by gui2::tselect_orb_colors::post_show().

void preferences::set_shroud ( bool  value)

Definition at line 696 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_shuffle_sides ( bool  value)

Definition at line 621 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_skip_mp_replay ( bool  value)
bool preferences::set_sound ( bool  ison)
void preferences::set_sound_volume ( int  vol)
void preferences::set_theme ( const std::string theme)

Definition at line 980 of file game_preferences.cpp.

References set().

Referenced by show_theme_dialog().

void preferences::set_turbo ( bool  ison)
void preferences::set_turbo_speed ( double  speed)
bool preferences::set_turn_bell ( bool  ison)
void preferences::set_turn_dialog ( bool  ison)

Definition at line 566 of file game_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_turns ( int  value)

Definition at line 706 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

bool preferences::set_UI_sound ( bool  ison)
void preferences::set_UI_volume ( int  vol)

Definition at line 568 of file preferences.cpp.

References sound::set_UI_volume(), and UI_volume().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_unmoved_color ( const std::string color_id)

Definition at line 325 of file preferences.cpp.

Referenced by gui2::tselect_orb_colors::post_show().

void preferences::set_use_map_settings ( bool  value)

Definition at line 639 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_use_twelve_hour_clock_format ( bool  value)
void preferences::set_village_gold ( int  value)

Definition at line 816 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_village_support ( int  value)

Definition at line 826 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

void preferences::set_whisper_friends_only ( bool  v)

Definition at line 47 of file lobby_preferences.cpp.

References set().

Referenced by gui2::tpreferences::initialize_members().

void preferences::set_wrap_login ( bool  wrap)

Definition at line 472 of file game_preferences.cpp.

References set().

Referenced by set_login().

void preferences::set_wrap_password ( bool  wrap)

Definition at line 460 of file game_preferences.cpp.

References set().

Referenced by set_password().

void preferences::set_xp_modifier ( int  value)

Definition at line 836 of file game_preferences.cpp.

References set().

Referenced by mp::configure::~configure().

bool preferences::show_ai_moves ( )
bool preferences::show_all_units_in_help ( )

Definition at line 1089 of file game_preferences.cpp.

References get().

Referenced by help::description_type().

bool preferences::show_allied_orb ( )

Definition at line 232 of file preferences.cpp.

References game_config::show_ally_orb.

Referenced by unit_drawer::redraw_unit().

bool preferences::show_combat ( )
bool preferences::show_enemy_orb ( )

Definition at line 239 of file preferences.cpp.

References game_config::show_enemy_orb.

Referenced by unit_drawer::redraw_unit().

bool preferences::show_floating_labels ( )

Definition at line 987 of file game_preferences.cpp.

References get().

Referenced by game_display::float_label(), and gui2::tpreferences::initialize_members().

bool preferences::show_fps ( )

Definition at line 936 of file preferences.cpp.

Referenced by events::console_handler::do_fps(), and display::update_display().

bool preferences::show_haloes ( )
bool preferences::show_moved_orb ( )

Definition at line 246 of file preferences.cpp.

References game_config::show_moved_orb.

Referenced by unit_drawer::redraw_unit().

bool preferences::show_partial_orb ( )

Definition at line 260 of file preferences.cpp.

References game_config::show_partial_orb.

Referenced by unit_drawer::redraw_unit().

void preferences::show_preferences_dialog ( CVideo video,
const config game_cfg,
const DIALOG_OPEN_TO  initial_view 
)
bool preferences::show_side_colors ( )

Definition at line 906 of file game_preferences.cpp.

References get().

Referenced by gui2::tpreferences::initialize_members(), and unit_drawer::redraw_unit().

bool preferences::show_standing_animations ( )
bool preferences::show_theme_dialog ( CVideo video)
bool preferences::show_unmoved_orb ( )

Definition at line 253 of file preferences.cpp.

References game_config::show_unmoved_orb.

Referenced by unit_drawer::redraw_unit().

void preferences::show_wesnothd_server_search ( CVideo video)
bool preferences::shroud ( )
bool preferences::shuffle_sides ( )

Definition at line 616 of file game_preferences.cpp.

References get().

Referenced by ng::configure_engine::shuffle_sides_default().

bool preferences::skip_mp_replay ( )

Definition at line 737 of file game_preferences.cpp.

References get().

Referenced by enter_wait_mode(), mp::lobby::lobby(), and gui2::tlobby_main::pre_show().

bool preferences::sort_list ( )
size_t preferences::sound_buffer_size ( )

Definition at line 488 of file preferences.cpp.

Referenced by sound::init_sound().

bool preferences::sound_on ( )
int preferences::sound_volume ( )
std::string preferences::theme ( )

Definition at line 961 of file game_preferences.cpp.

References get(), and CVideo::get_singleton().

Referenced by controller_base::get_theme(), and show_theme_dialog().

void preferences::toggle_minimap_draw_terrain ( )

Definition at line 911 of file preferences.cpp.

References minimap_draw_terrain(), and set().

Referenced by hotkey::execute_command().

void preferences::toggle_minimap_draw_units ( )

Definition at line 891 of file preferences.cpp.

References minimap_draw_units(), and set().

Referenced by hotkey::execute_command().

void preferences::toggle_minimap_draw_villages ( )

Definition at line 901 of file preferences.cpp.

References minimap_draw_villages(), and set().

Referenced by hotkey::execute_command().

void preferences::toggle_minimap_movement_coding ( )

Definition at line 871 of file preferences.cpp.

References minimap_movement_coding(), and set().

Referenced by hotkey::execute_command().

void preferences::toggle_minimap_terrain_coding ( )

Definition at line 881 of file preferences.cpp.

References minimap_terrain_coding(), and set().

Referenced by hotkey::execute_command().

bool preferences::turbo ( )
double preferences::turbo_speed ( )
bool preferences::turn_bell ( )
bool preferences::turn_dialog ( )
int preferences::turns ( )
bool preferences::UI_sound_on ( )
int preferences::UI_volume ( )
std::string preferences::unmoved_color ( )
bool preferences::use_color_cursors ( )

Definition at line 956 of file preferences.cpp.

Referenced by gui2::twindow::draw(), and use_color_cursors().

bool preferences::use_map_settings ( )
bool preferences::use_twelve_hour_clock_format ( )
int preferences::village_gold ( )
int preferences::village_support ( )
bool preferences::whisper_friends_only ( )
bool preferences::wrap_login ( )

Returns whether the MP username is stored wrapped in markers.

New usernames are stored in a specific format to force string interpretation (due to bug #16571).

Definition at line 465 of file game_preferences.cpp.

References get(), and have_setting().

Referenced by login().

bool preferences::wrap_password ( )

Returns whether the password is stored wrapped in markers.

New passwords are stored in a specific format to force string interpretation (due to bug #16571).

Definition at line 453 of file game_preferences.cpp.

References get(), and have_setting().

Referenced by password().

void preferences::write_preferences ( )
int preferences::xp_modifier ( )
bool preferences::yellow_confirm ( )

Definition at line 1132 of file game_preferences.cpp.

References get().

Referenced by events::menu_handler::end_turn().

Variable Documentation

prefs_event_handler preferences::event_handler_

Definition at line 67 of file preferences.cpp.

const int preferences::INFINITE_AUTO_SAVES = 61