Freeciv21
Develop your civilization from humble roots to a global empire
client_options Struct Reference

#include <options.h>

+ Collaboration diagram for client_options:

Public Attributes

char default_user_name [512] = "\0"
 
char default_server_host [512] = "localhost"
 
int default_server_port = DEFAULT_SOCK_PORT
 
bool use_prev_server = false
 
bool heartbeat_enabled = false
 
char default_metaserver [512] = DEFAULT_METASERVER_OPTION
 
char default_tileset_square_name [512] = "\0"
 
char default_tileset_hex_name [512] = "\0"
 
char default_tileset_isohex_name [512] = "\0"
 
char default_city_bar_style_name [512] = "Simple"
 
char default_sound_set_name [512] = "stdsounds"
 
char default_music_set_name [512] = "stdmusic"
 
char default_sound_plugin_name [512] = "\0"
 
char default_chat_logfile [512] = "freeciv-chat.log"
 
bool save_options_on_exit = true
 
bool first_boot = true
 Migrations. More...
 
char default_tileset_overhead_name [512]
 
char default_tileset_iso_name [512]
 
bool migrate_fullscreen = false
 
bool solid_color_behind_units = false
 Local Options: More...
 
bool sound_bell_at_new_turn = false
 
int smooth_move_unit_msec = 30
 
int smooth_center_slide_msec = 200
 
int smooth_combat_step_msec = 10
 
bool ai_manual_turn_done = true
 
bool auto_center_on_unit = true
 
bool auto_center_on_automated = true
 
bool auto_center_on_combat = false
 
bool auto_center_each_turn = true
 
bool wakeup_focus = true
 
bool goto_into_unknown = true
 
bool center_when_popup_city = true
 
bool show_previous_turn_messages = true
 
bool concise_city_production = false
 
bool auto_turn_done = false
 
bool ask_city_name = true
 
bool popup_new_cities = true
 
bool popup_actor_arrival = true
 
bool popup_attack_actions = true
 
bool popup_last_move_to_allied = true
 
bool keyboardless_goto = false
 
bool enable_cursor_changes = true
 
bool separate_unit_selection = false
 
bool unit_selection_clears_orders = true
 
struct ft_color highlight_our_names = FT_COLOR("#000000", "#FFFF00")
 
bool voteinfo_bar_use = true
 
bool voteinfo_bar_always_show = false
 
bool voteinfo_bar_hide_when_not_player = false
 
bool voteinfo_bar_new_at_front = false
 
bool autoaccept_tileset_suggestion = false
 
bool autoaccept_soundset_suggestion = false
 
bool autoaccept_musicset_suggestion = false
 
bool sound_enable_effects = true
 
bool sound_enable_menu_music = true
 
bool sound_enable_game_music = true
 
int sound_effects_volume = 50
 
bool draw_city_outlines = true
 
bool draw_city_output = false
 
bool draw_map_grid = false
 
bool draw_city_names = true
 
bool draw_city_growth = true
 
bool draw_city_productions = true
 
bool draw_city_buycost = false
 
bool draw_city_trade_routes = false
 
bool draw_coastline = false
 
bool draw_roads_rails = true
 
bool draw_irrigation = true
 
bool draw_mines = true
 
bool draw_fortress_airbase = true
 
bool draw_specials = true
 
bool draw_huts = true
 
bool draw_pollution = true
 
bool draw_cities = true
 
bool draw_units = true
 
bool draw_focus_unit = false
 
bool draw_fog_of_war = true
 
bool draw_borders = true
 
bool draw_native = false
 
bool draw_unit_shields = true
 
bool zoom_scale_fonts = true
 
bool player_dlg_show_dead_players = true
 
bool reqtree_show_icons = true
 
bool reqtree_curved_lines = false
 
char mapimg_format [64] = "png"
 
int mapimg_zoom = 2
 
bool mapimg_layer [MAPIMG_LAYER_COUNT]
 
char mapimg_filename [512] = "mapimage filename"
 
bool gui_qt_fullscreen = true
 
bool gui_qt_show_preview = true
 
bool gui_qt_allied_chat_only = true
 
int gui_qt_increase_fonts = 0
 
char gui_qt_default_theme_name [512] = "NightStalker"
 
QFont gui_qt_font_default
 
QFont gui_qt_font_notify_label
 
QFont gui_qt_font_help_label
 
QFont gui_qt_font_help_text
 
QFont gui_qt_font_chatline
 
QFont gui_qt_font_city_names
 
QFont gui_qt_font_city_productions
 
QFont gui_qt_font_reqtree_text
 
bool gui_qt_show_titlebar = true
 
struct overview overview = {}
 
std::map< QString, std::map< QString, bool > > tileset_options
 Saved tileset options. More...
 

Detailed Description

Definition at line 48 of file options.h.

Member Data Documentation

◆ ai_manual_turn_done

bool client_options::ai_manual_turn_done = true

◆ ask_city_name

bool client_options::ask_city_name = true

Definition at line 95 of file options.h.

Referenced by handle_city_name_suggestion_info().

◆ auto_center_each_turn

bool client_options::auto_center_each_turn = true

Definition at line 88 of file options.h.

Referenced by client_state().

◆ auto_center_on_automated

bool client_options::auto_center_on_automated = true

Definition at line 86 of file options.h.

Referenced by do_move_unit().

◆ auto_center_on_combat

bool client_options::auto_center_on_combat = false

Definition at line 87 of file options.h.

Referenced by handle_unit_bombard_info(), and handle_unit_combat_info().

◆ auto_center_on_unit

bool client_options::auto_center_on_unit = true

Definition at line 85 of file options.h.

Referenced by auto_center_on_focus_unit(), and do_move_unit().

◆ auto_turn_done

bool client_options::auto_turn_done = false

Definition at line 94 of file options.h.

Referenced by unit_focus_advance().

◆ autoaccept_musicset_suggestion

bool client_options::autoaccept_musicset_suggestion = false

Definition at line 113 of file options.h.

Referenced by handle_ruleset_control().

◆ autoaccept_soundset_suggestion

bool client_options::autoaccept_soundset_suggestion = false

Definition at line 112 of file options.h.

Referenced by handle_ruleset_control().

◆ autoaccept_tileset_suggestion

bool client_options::autoaccept_tileset_suggestion = false

Definition at line 111 of file options.h.

Referenced by handle_ruleset_control().

◆ center_when_popup_city

bool client_options::center_when_popup_city = true

Definition at line 91 of file options.h.

Referenced by city_widget::city_view(), and meswin_popup_city().

◆ concise_city_production

bool client_options::concise_city_production = false

Definition at line 93 of file options.h.

Referenced by cr_entry_building(), and get_city_dialog_production().

◆ default_chat_logfile

char client_options::default_chat_logfile[512] = "freeciv-chat.log"

Definition at line 62 of file options.h.

◆ default_city_bar_style_name

char client_options::default_city_bar_style_name[512] = "Simple"

◆ default_metaserver

char client_options::default_metaserver[512] = DEFAULT_METASERVER_OPTION

Definition at line 54 of file options.h.

Referenced by client_main().

◆ default_music_set_name

char client_options::default_music_set_name[512] = "stdmusic"

Definition at line 60 of file options.h.

Referenced by client_main().

◆ default_server_host

char client_options::default_server_host[512] = "localhost"

Definition at line 50 of file options.h.

Referenced by client_main(), and connect_to_server().

◆ default_server_port

int client_options::default_server_port = DEFAULT_SOCK_PORT

Definition at line 51 of file options.h.

Referenced by client_main(), and connect_to_server().

◆ default_sound_plugin_name

char client_options::default_sound_plugin_name[512] = "\0"

Definition at line 61 of file options.h.

Referenced by client_main().

◆ default_sound_set_name

char client_options::default_sound_set_name[512] = "stdsounds"

Definition at line 59 of file options.h.

Referenced by client_main().

◆ default_tileset_hex_name

char client_options::default_tileset_hex_name[512] = "\0"

Definition at line 56 of file options.h.

Referenced by tileset_name_for_topology().

◆ default_tileset_iso_name

char client_options::default_tileset_iso_name[512]
Initial value:
=
"\0"

Definition at line 72 of file options.h.

◆ default_tileset_isohex_name

char client_options::default_tileset_isohex_name[512] = "\0"

Definition at line 57 of file options.h.

Referenced by tileset_name_for_topology().

◆ default_tileset_overhead_name

char client_options::default_tileset_overhead_name[512]
Initial value:
=
"\0"

Definition at line 69 of file options.h.

◆ default_tileset_square_name

char client_options::default_tileset_square_name[512] = "\0"

Definition at line 55 of file options.h.

Referenced by tileset_name_for_topology().

◆ default_user_name

char client_options::default_user_name[512] = "\0"

Definition at line 49 of file options.h.

Referenced by client_main(), and options_init().

◆ draw_borders

bool client_options::draw_borders = true

◆ draw_cities

◆ draw_city_buycost

bool client_options::draw_city_buycost = false

◆ draw_city_growth

◆ draw_city_names

◆ draw_city_outlines

bool client_options::draw_city_outlines = true

◆ draw_city_output

bool client_options::draw_city_output = false

◆ draw_city_productions

◆ draw_city_trade_routes

◆ draw_coastline

bool client_options::draw_coastline = false

Definition at line 128 of file options.h.

◆ draw_focus_unit

bool client_options::draw_focus_unit = false

◆ draw_fog_of_war

bool client_options::draw_fog_of_war = true

Definition at line 139 of file options.h.

Referenced by freeciv::layer_fog::fill_sprite_array(), and put_one_element().

◆ draw_fortress_airbase

bool client_options::draw_fortress_airbase = true

Definition at line 132 of file options.h.

Referenced by is_extra_drawing_enabled().

◆ draw_huts

bool client_options::draw_huts = true

Definition at line 134 of file options.h.

Referenced by is_extra_drawing_enabled().

◆ draw_irrigation

bool client_options::draw_irrigation = true

Definition at line 130 of file options.h.

Referenced by is_extra_drawing_enabled().

◆ draw_map_grid

bool client_options::draw_map_grid = false

◆ draw_mines

bool client_options::draw_mines = true

Definition at line 131 of file options.h.

Referenced by is_extra_drawing_enabled().

◆ draw_native

bool client_options::draw_native = false

◆ draw_pollution

bool client_options::draw_pollution = true

Definition at line 135 of file options.h.

Referenced by is_extra_drawing_enabled().

◆ draw_roads_rails

bool client_options::draw_roads_rails = true

Definition at line 129 of file options.h.

Referenced by is_extra_drawing_enabled().

◆ draw_specials

bool client_options::draw_specials = true

Definition at line 133 of file options.h.

Referenced by is_extra_drawing_enabled().

◆ draw_unit_shields

bool client_options::draw_unit_shields = true

Definition at line 142 of file options.h.

Referenced by get_unit_nation_flag_sprite().

◆ draw_units

bool client_options::draw_units = true

◆ enable_cursor_changes

bool client_options::enable_cursor_changes = true

Definition at line 101 of file options.h.

Referenced by control_mouse_cursor().

◆ first_boot

bool client_options::first_boot = true

Migrations.

Definition at line 67 of file options.h.

◆ goto_into_unknown

bool client_options::goto_into_unknown = true

Definition at line 90 of file options.h.

Referenced by enter_goto_state(), and request_units_return().

◆ gui_qt_allied_chat_only

bool client_options::gui_qt_allied_chat_only = true

◆ gui_qt_default_theme_name

char client_options::gui_qt_default_theme_name[512] = "NightStalker"

Definition at line 168 of file options.h.

Referenced by get_useable_themes_in_directory(), map_view::shortcut_pressed(), and ui_main().

◆ gui_qt_font_chatline

QFont client_options::gui_qt_font_chatline

Definition at line 173 of file options.h.

◆ gui_qt_font_city_names

QFont client_options::gui_qt_font_city_names

Definition at line 174 of file options.h.

◆ gui_qt_font_city_productions

QFont client_options::gui_qt_font_city_productions

Definition at line 175 of file options.h.

◆ gui_qt_font_default

QFont client_options::gui_qt_font_default

Definition at line 169 of file options.h.

◆ gui_qt_font_help_label

QFont client_options::gui_qt_font_help_label

Definition at line 171 of file options.h.

◆ gui_qt_font_help_text

QFont client_options::gui_qt_font_help_text

Definition at line 172 of file options.h.

◆ gui_qt_font_notify_label

QFont client_options::gui_qt_font_notify_label

Definition at line 170 of file options.h.

◆ gui_qt_font_reqtree_text

QFont client_options::gui_qt_font_reqtree_text

Definition at line 176 of file options.h.

◆ gui_qt_fullscreen

bool client_options::gui_qt_fullscreen = true

◆ gui_qt_increase_fonts

int client_options::gui_qt_increase_fonts = 0

Definition at line 167 of file options.h.

Referenced by gui_update_allfonts(), and options_save().

◆ gui_qt_show_preview

bool client_options::gui_qt_show_preview = true

◆ gui_qt_show_titlebar

bool client_options::gui_qt_show_titlebar = true

Definition at line 177 of file options.h.

Referenced by fc_client::current_page(), and fc_client::fc_client().

◆ heartbeat_enabled

bool client_options::heartbeat_enabled = false

Definition at line 53 of file options.h.

Referenced by real_timer_callback().

◆ highlight_our_names

struct ft_color client_options::highlight_our_names = FT_COLOR("#000000", "#FFFF00")

Definition at line 103 of file options.h.

Referenced by handle_event().

◆ keyboardless_goto

bool client_options::keyboardless_goto = false

Definition at line 100 of file options.h.

Referenced by do_map_click().

◆ mapimg_filename

char client_options::mapimg_filename[512] = "mapimage filename"

Definition at line 161 of file options.h.

◆ mapimg_format

char client_options::mapimg_format[64] = "png"

Definition at line 150 of file options.h.

Referenced by mapimg_client_define().

◆ mapimg_layer

bool client_options::mapimg_layer[MAPIMG_LAYER_COUNT]
Initial value:
= {
false,
true,
true,
true,
true,
true,
true
}

Definition at line 152 of file options.h.

Referenced by mapimg_client_define().

◆ mapimg_zoom

int client_options::mapimg_zoom = 2

Definition at line 151 of file options.h.

Referenced by mapimg_client_define().

◆ migrate_fullscreen

bool client_options::migrate_fullscreen = false

Definition at line 75 of file options.h.

Referenced by options_save().

◆ overview

◆ player_dlg_show_dead_players

bool client_options::player_dlg_show_dead_players = true

Definition at line 145 of file options.h.

◆ popup_actor_arrival

bool client_options::popup_actor_arrival = true

Definition at line 97 of file options.h.

Referenced by should_ask_server_for_actions().

◆ popup_attack_actions

bool client_options::popup_attack_actions = true

Definition at line 98 of file options.h.

Referenced by handle_unit_actions().

◆ popup_last_move_to_allied

bool client_options::popup_last_move_to_allied = true

Definition at line 99 of file options.h.

Referenced by request_move_unit_direction().

◆ popup_new_cities

bool client_options::popup_new_cities = true

Definition at line 96 of file options.h.

Referenced by handle_city_info().

◆ reqtree_curved_lines

bool client_options::reqtree_curved_lines = false

Definition at line 147 of file options.h.

Referenced by draw_reqtree().

◆ reqtree_show_icons

bool client_options::reqtree_show_icons = true

Definition at line 146 of file options.h.

Referenced by draw_reqtree(), and node_rectangle_minimum_size().

◆ save_options_on_exit

bool client_options::save_options_on_exit = true

Definition at line 64 of file options.h.

Referenced by client_exit(), disconnect_from_server(), options_save(), and mr_menu::setup_menus().

◆ separate_unit_selection

bool client_options::separate_unit_selection = false

Definition at line 102 of file options.h.

◆ show_previous_turn_messages

bool client_options::show_previous_turn_messages = true

Definition at line 92 of file options.h.

Referenced by meswin_clear_older().

◆ smooth_center_slide_msec

int client_options::smooth_center_slide_msec = 200

Definition at line 82 of file options.h.

Referenced by map_view::center_on_tile(), and map_view::set_scale().

◆ smooth_combat_step_msec

int client_options::smooth_combat_step_msec = 10

◆ smooth_move_unit_msec

int client_options::smooth_move_unit_msec = 30

Definition at line 81 of file options.h.

Referenced by do_move_unit(), and move_unit_map_canvas().

◆ solid_color_behind_units

bool client_options::solid_color_behind_units = false

◆ sound_bell_at_new_turn

bool client_options::sound_bell_at_new_turn = false

Definition at line 80 of file options.h.

Referenced by handle_new_year().

◆ sound_effects_volume

int client_options::sound_effects_volume = 50

Definition at line 118 of file options.h.

Referenced by audio_select_plugin(), and sound_volume_callback().

◆ sound_enable_effects

bool client_options::sound_enable_effects = true

Definition at line 115 of file options.h.

Referenced by audio_play_sound().

◆ sound_enable_game_music

bool client_options::sound_enable_game_music = true

◆ sound_enable_menu_music

bool client_options::sound_enable_menu_music = true

◆ tileset_options

std::map<QString, std::map<QString, bool> > client_options::tileset_options

Saved tileset options.

The first index is the tileset name, the second is the option name.

Definition at line 183 of file options.h.

Referenced by tileset_set_option(), and tileset_setup_options().

◆ unit_selection_clears_orders

bool client_options::unit_selection_clears_orders = true

Definition at line 103 of file options.h.

Referenced by current_focus_append().

◆ use_prev_server

bool client_options::use_prev_server = false

Definition at line 52 of file options.h.

Referenced by client_main(), and connect_to_server().

◆ voteinfo_bar_always_show

bool client_options::voteinfo_bar_always_show = false

Definition at line 107 of file options.h.

◆ voteinfo_bar_hide_when_not_player

bool client_options::voteinfo_bar_hide_when_not_player = false

Definition at line 108 of file options.h.

◆ voteinfo_bar_new_at_front

bool client_options::voteinfo_bar_new_at_front = false

Definition at line 109 of file options.h.

Referenced by voteinfo_queue_add().

◆ voteinfo_bar_use

bool client_options::voteinfo_bar_use = true

Definition at line 106 of file options.h.

◆ wakeup_focus

bool client_options::wakeup_focus = true

Definition at line 89 of file options.h.

Referenced by handle_unit_packet_common().

◆ zoom_scale_fonts

bool client_options::zoom_scale_fonts = true

Definition at line 143 of file options.h.

Referenced by fcFont::getFont(), and mr_menu::zoom_scale_fonts().