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

#include <game.h>

+ Collaboration diagram for civ_game:

Public Attributes

struct packet_ruleset_control control
 
char * ruleset_summary
 
char * ruleset_description
 
char * ruleset_capabilities
 
struct packet_scenario_info scenario
 
struct packet_scenario_description scenario_desc
 
struct packet_game_info info
 
struct packet_calendar_info calendar
 
struct packet_timeout_info tinfo
 
struct governmentdefault_government
 
struct governmentgovernment_during_revolution
 
struct conn_list * all_connections
 
struct conn_list * est_connections
 
struct conn_list * glob_observers
 
struct veteran_systemveteran
 
struct rgbcolorplr_bg_color
 
struct {
   int   global_init_techs [MAX_NUM_TECH_LIST]
 
   int   global_init_buildings [MAX_NUM_BUILDING_LIST]
 
rgame
 
union {
   struct {
      bool   ruleset_init
 
      bool   ruleset_ready
 
   }   client
 
   struct {
      diplstate_type   initial_diplomatic_state
 
      enum city_names_mode   allowed_city_names
 
      enum plrcolor_mode   plrcolormode
 
      int   aqueductloss
 
      bool   auto_ai_toggle
 
      bool   autoattack
 
      int   autoupgrade_veteran_loss
 
      enum barbarians_rate   barbarianrate
 
      int   base_incite_cost
 
      int   civilwarsize
 
      int   conquercost
 
      int   contactturns
 
      int   diplchance
 
      int   diplbulbcost
 
      int   diplgoldcost
 
      int   incite_gold_loss_chance
 
      int   incite_gold_capt_chance
 
      int   dispersion
 
      int   end_turn
 
      bool   endspaceship
 
      bool   fixedlength
 
      bool   foggedborders
 
      int   freecost
 
      int   incite_improvement_factor
 
      int   incite_total_factor
 
      int   incite_unit_factor
 
      int   init_vis_radius_sq
 
      int   kick_time
 
      int   maxconnectionsperhost
 
      int   max_players
 
      char   nationset [MAX_LEN_NAME]
 
      int   mgr_distance
 
      bool   mgr_foodneeded
 
      int   mgr_nationchance
 
      int   mgr_turninterval
 
      int   mgr_worldchance
 
      bool   multiresearch
 
      bool   migration
 
      enum trait_dist_mode   trait_dist
 
      int   min_players
 
      bool   natural_city_names
 
      int   netwait
 
      int   num_phases
 
      int   occupychance
 
      int   onsetbarbarian
 
      int   pingtime
 
      int   pingtimeout
 
      int   ransom_gold
 
      int   razechance
 
      unsigned   revealmap
 
      int   revolution_length
 
      int   spaceship_travel_time
 
      bool   threaded_save
 
      enum compress_type   save_compress_type
 
      int   save_nturns
 
      int   save_frequency
 
      unsigned   autosaves
 
      bool   savepalace
 
      bool   homecaughtunits
 
      char   start_units [MAX_LEN_STARTUNIT]
 
      bool   start_city
 
      int   start_year
 
      int   techloss_restore
 
      int   techlost_donor
 
      int   techlost_recv
 
      int   techpenalty
 
      bool   turnblock
 
      int   unitwaittime
 
      bool   unitwaittime_extended
 
      unsigned   unitwaittime_style
 
      int   upgrade_veteran_loss
 
      bool   vision_reveal_tiles
 
      bool   debug [DEBUG_LAST]
 
      int   timeoutint
 
      int   timeoutinc
 
      int   timeoutincmult
 
      int   timeoutintinc
 
      int   timeoutcounter
 
      int   timeoutaddenemymove
 
      time_t   last_ping
 
      civtimer *   phase_timer
 
      int   additional_phase_seconds
 
      int   phase_mode_stored
 
      civtimer *   save_timer
 
      float   turn_change_time
 
      char   connectmsg [MAX_LEN_MSG]
 
      char   save_name [MAX_LEN_NAME]
 
      bool   scorelog
 
      enum scoreQtMsgType   scoreloglevel
 
      char   scorefile [MAX_LEN_NAME]
 
      int   scoreturn
 
      int   seed_setting
 
      int   seed
 
      bool   global_warming
 
      int   global_warming_percent
 
      bool   nuclear_winter
 
      int   nuclear_winter_percent
 
      bool   fogofwar_old
 
      bool   last_updated_year
 
      char   rulesetdir [MAX_LEN_NAME]
 
      char   demography [MAX_LEN_DEMOGRAPHY]
 
      char   allow_take [MAX_LEN_ALLOW_TAKE]
 
      bool   settings_gamestart_valid
 
      struct rgbcolor_list *   plr_colors
 
      struct section_file *   luadata
 
      struct {
         int   turns
 
         int   max_size
 
         bool   chat
 
         bool   info
 
      }   event_cache
 
      struct {
         bool   save_known
 
         bool   save_starts
 
         bool   save_private_map
 
      }   save_options
 
      struct {
         char   user_message [256]
 
         char   type [20]
 
      }   meta_info
 
      struct {
         QMutex *   city_list
 
      }   mutexes
 
      struct trait_limits   default_traits [TRAIT_COUNT]
 
      struct {
         char *   description_file
 
         char *   nationlist
 
         char **   embedded_nations
 
         size_t   embedded_nations_count
 
         const char **   allowed_govs
 
         char **   nc_agovs
 
         size_t   ag_count
 
         const char **   allowed_terrains
 
         char **   nc_aterrs
 
         size_t   at_count
 
         const char **   allowed_styles
 
         char **   nc_astyles
 
         size_t   as_count
 
         int   named_teams
 
      }   ruledit
 
   }   server
 
}; 
 
struct {
   void(*   unit_deallocate )(int unit_id)
 
callbacks
 

Detailed Description

Definition at line 73 of file game.h.

Member Data Documentation

◆ 

union { ... }

◆ additional_phase_seconds

int civ_game::additional_phase_seconds

Definition at line 206 of file game.h.

◆ ag_count

size_t civ_game::ag_count

Definition at line 274 of file game.h.

◆ all_connections

◆ allow_take

char civ_game::allow_take[MAX_LEN_ALLOW_TAKE]

Definition at line 233 of file game.h.

◆ allowed_city_names

enum city_names_mode civ_game::allowed_city_names

Definition at line 114 of file game.h.

◆ allowed_govs

const char** civ_game::allowed_govs

Definition at line 272 of file game.h.

◆ allowed_styles

const char** civ_game::allowed_styles

Definition at line 278 of file game.h.

◆ allowed_terrains

const char** civ_game::allowed_terrains

Definition at line 275 of file game.h.

◆ aqueductloss

int civ_game::aqueductloss

Definition at line 120 of file game.h.

◆ as_count

size_t civ_game::as_count

Definition at line 280 of file game.h.

◆ at_count

size_t civ_game::at_count

Definition at line 277 of file game.h.

◆ auto_ai_toggle

bool civ_game::auto_ai_toggle

Definition at line 121 of file game.h.

◆ autoattack

bool civ_game::autoattack

Definition at line 122 of file game.h.

◆ autosaves

unsigned civ_game::autosaves

Definition at line 174 of file game.h.

◆ autoupgrade_veteran_loss

int civ_game::autoupgrade_veteran_loss

Definition at line 123 of file game.h.

◆ barbarianrate

enum barbarians_rate civ_game::barbarianrate

Definition at line 123 of file game.h.

◆ base_incite_cost

int civ_game::base_incite_cost

Definition at line 125 of file game.h.

◆ calendar

◆ 

struct { ... } civ_game::callbacks

Referenced by game_remove_unit(), and srv_init().

◆ chat

bool civ_game::chat

Definition at line 244 of file game.h.

◆ city_list

QMutex* civ_game::city_list

Definition at line 262 of file game.h.

◆ civilwarsize

int civ_game::civilwarsize

Definition at line 126 of file game.h.

◆ 

◆ connectmsg

char civ_game::connectmsg[MAX_LEN_MSG]

Definition at line 213 of file game.h.

◆ conquercost

int civ_game::conquercost

Definition at line 127 of file game.h.

◆ contactturns

int civ_game::contactturns

Definition at line 128 of file game.h.

◆ control

struct packet_ruleset_control civ_game::control

Definition at line 66 of file game.h.

Referenced by achievement_by_number(), tab_extras::add_now(), tab_good::add_now(), tab_gov::add_now(), tab_multiplier::add_now(), tab_tech::add_now(), tab_terrains::add_now(), tab_unit::add_now(), tab_building::add_now2(), advance_array_last(), advance_by_number(), advance_count(), api_methods_game_ruleset_name(), base_count(), basic_city_style_for_style(), boot_help_texts(), city_name_suggestion(), city_style(), city_style_by_rule_name(), city_styles_alloc(), city_styles_free(), disaster_by_number(), editor_tool_is_usable(), extra_count(), extras_free(), game_defaults(), goods_by_number(), government_by_number(), government_count(), governments_alloc(), governments_free(), handle_achievement_info(), handle_edit_player_create(), handle_edit_tile_extra(), handle_nation_availability(), handle_nation_select_req(), handle_player_info(), handle_ruleset_city(), handle_ruleset_control(), handle_ruleset_description_part(), handle_ruleset_music(), handle_ruleset_tech(), handle_set_topology(), handle_unit_change_activity(), helptext_advance(), improvement_array_first(), improvement_array_last(), improvement_count(), is_universal_needed(), load_building_names(), load_game_names(), load_government_names(), load_nation_names(), load_ruleset_cities(), load_ruleset_game(), load_ruleset_styles(), load_ruleset_techs(), load_ruleset_terrain(), load_style_names(), load_tech_names(), load_terrain_names(), load_unit_names(), main(), manual_command(), multiplier_by_number(), multiplier_count(), music_style_by_number(), nation_by_number(), nations_alloc(), nations_free(), pick_a_nation(), popup_musicset_suggestion_dialog(), popup_soundset_suggestion_dialog(), popup_tileset_suggestion_dialog(), real_science_report_dialog_update(), tab_misc::refresh(), tab_misc::refresh_stats(), road_count(), sanity_check_ruleset_data(), save_game_ruleset(), save_nation(), tab_misc::save_now(), save_styles_ruleset(), save_techs_ruleset(), send_nation_availability_real(), send_ruleset_cities(), send_ruleset_control(), send_ruleset_governments(), send_to_metaserver(), sg_load_savefile(), sg_save_game(), sg_save_map_tiles_extras(), sg_save_player_vision(), sg_save_researches(), sg_save_savefile(), specialist_by_number(), specialist_count(), style_by_number(), tech_class_by_number(), tech_class_by_rule_name(), terrain_array_first(), terrain_array_last(), terrain_by_number(), terrain_count(), tileset_setup_nation_flag(), tilespec_reread(), uclass_by_number(), uclass_count(), unit_class_array_first(), unit_class_array_last(), unit_order_list_is_sane(), unit_type_array_first(), unit_type_array_last(), universal_value_initial(), utype_by_number(), utype_count(), and wakeup_neighbor_sentries().

◆ debug

bool civ_game::debug[DEBUG_LAST]

Definition at line 193 of file game.h.

◆ default_government

struct government* civ_game::default_government

◆ default_traits

struct trait_limits civ_game::default_traits[TRAIT_COUNT]

Definition at line 239 of file game.h.

◆ demography

char civ_game::demography[MAX_LEN_DEMOGRAPHY]

Definition at line 232 of file game.h.

◆ description_file

char* civ_game::description_file

Definition at line 268 of file game.h.

◆ diplbulbcost

int civ_game::diplbulbcost

Definition at line 130 of file game.h.

◆ diplchance

int civ_game::diplchance

Definition at line 129 of file game.h.

◆ diplgoldcost

int civ_game::diplgoldcost

Definition at line 131 of file game.h.

◆ dispersion

int civ_game::dispersion

Definition at line 134 of file game.h.

◆ embedded_nations

char** civ_game::embedded_nations

Definition at line 270 of file game.h.

◆ embedded_nations_count

size_t civ_game::embedded_nations_count

Definition at line 271 of file game.h.

◆ end_turn

int civ_game::end_turn

Definition at line 135 of file game.h.

◆ endspaceship

bool civ_game::endspaceship

Definition at line 136 of file game.h.

◆ est_connections

struct conn_list* civ_game::est_connections

Definition at line 88 of file game.h.

Referenced by a_connection_exists(), access_level_for_next_connection(), announce_player(), autotoggle_action(), away_command(), freeciv::server::begin_phase(), begin_phase(), begin_turn(), broadcast_city_info(), chat_msg_to_all(), chat_msg_to_global_observers(), check_for_game_over(), check_leaving_edit_mode(), client_exit(), client_main(), client_remove_cli_conn(), close_connection(), close_connections_and_socket(), cmd_reply_line(), cmdlevel_command(), connection_attach_real(), connection_detach(), count_voters(), debug_command(), edithand_send_initial_packets(), end_command(), freeciv::server::end_phase(), freeciv::server::end_turn(), end_turn(), establish_new_connection(), handle_conn_info(), handle_edit_city(), handle_edit_city_create(), handle_edit_player_vision(), handle_edit_startpos(), handle_edit_startpos_full(), handle_edit_tile_extra(), handle_edit_tile_terrain(), handle_edit_toggle_fogofwar(), handle_edit_unit_create(), handle_nation_select_req(), handle_player_info(), handle_stdin_input_real(), init_connections(), kick_command(), kill_player(), load_command(), lost_connection_to_client(), lsend_vote_new(), lsend_vote_remove(), lsend_vote_resolve(), lsend_vote_update(), make_history_report(), nationset_action(), notify_conn(), notify_conn_early(), notify_conn_packet(), notify_team(), player_info_thaw(), player_limit_to_max_rates(), playernation_command(), freeciv::server::quit_idle(), really_close_connections(), remove_city(), remove_player_from_maps(), report_final_scores(), reset_all_start_commands(), reset_command(), see_combat_unit(), send_all_known_tiles(), send_bombardment(), send_city_info_at_tile(), send_city_turn_notifications(), send_combat(), send_conn_info_arg(), send_game_info(), send_player_diplstate_c_real(), send_player_info_c_real(), send_player_remove_info_c(), send_research_info(), send_scenario_description(), send_scenario_info(), send_server_setting(), send_spaceship_info(), send_tile_info(), send_unit_info(), send_updated_vote_totals(), send_year_to_clients(), server_remove_unit_full(), set_command(), set_rulesetdir(), spy_nuke_city(), srv_ready(), srv_scores(), start_game(), surrender_command(), toggle_ai_command(), topology_action(), unit_move(), unit_nuke(), chat_input::update_completion(), freeciv::server::update_game_state(), page_pregame::update_start_page(), update_tile_knowledge(), and update_timeout().

◆ 

struct { ... } civ_game::event_cache

◆ fixedlength

bool civ_game::fixedlength

Definition at line 137 of file game.h.

◆ foggedborders

bool civ_game::foggedborders

Definition at line 138 of file game.h.

◆ fogofwar_old

bool civ_game::fogofwar_old

Definition at line 227 of file game.h.

◆ freecost

int civ_game::freecost

Definition at line 139 of file game.h.

◆ glob_observers

◆ global_init_buildings

◆ global_init_techs

◆ global_warming

bool civ_game::global_warming

Definition at line 222 of file game.h.

◆ global_warming_percent

int civ_game::global_warming_percent

Definition at line 223 of file game.h.

◆ government_during_revolution

◆ homecaughtunits

bool civ_game::homecaughtunits

Definition at line 177 of file game.h.

◆ incite_gold_capt_chance

int civ_game::incite_gold_capt_chance

Definition at line 133 of file game.h.

◆ incite_gold_loss_chance

int civ_game::incite_gold_loss_chance

Definition at line 132 of file game.h.

◆ incite_improvement_factor

int civ_game::incite_improvement_factor

Definition at line 140 of file game.h.

◆ incite_total_factor

int civ_game::incite_total_factor

Definition at line 141 of file game.h.

◆ incite_unit_factor

int civ_game::incite_unit_factor

Definition at line 142 of file game.h.

◆ info [1/2]

struct packet_game_info civ_game::info

Definition at line 77 of file game.h.

Referenced by action_not_enabled_reason(), add_tax_income(), adjust_improvement_wants_by_effects(), aifill(), diplo_wdg::all_advances(), api_methods_city_inspire_partisans(), api_methods_game_turn(), api_methods_game_turn_deprecated(), api_methods_game_year(), api_methods_game_year_fragment(), freeciv::path_finder::path_finder_private::attempt_paradrop(), auto_settlers_player(), base_city_celebrating(), base_want(), freeciv::server::begin_phase(), begin_phase(), begin_turn(), blink_turn_done_button(), build_landarea_map(), calendar_text(), can_cities_trade(), can_conn_edit(), can_conn_edit_players_nation(), can_end_turn(), can_exist_at_tile(), can_player_build_unit_direct(), can_unit_move_now(), check_city_migrations_player(), check_disasters(), check_for_game_over(), check_leaving_edit_mode(), choice_is_promising(), choose_tech_to_steal(), citizen_convert_check(), citizen_happiness_nationality(), citizen_luxury_happy(), citizens_convert(), citizens_convert_conquest(), citizens_count(), citizens_init(), citizens_nation_add(), citizens_nation_get(), citizens_nation_set(), citizens_print(), citizens_update(), city_add_improvement(), city_build_building(), city_build_unit(), city_built_last_turn(), city_can_buy(), city_desirability(), city_did_prod_change(), city_distribute_surplus_shields(), city_from_great_wonder(), city_granary_size(), city_had_recent_plague(), city_handle_plague_risk(), city_happy(), city_history_gain(), city_illness_calc(), city_illness_strike(), city_incite_cost(), city_map_update_radius_sq(), city_migration_score(), city_pollution_types(), city_populate(), city_rapture_grow(), city_support(), city_tile_output(), city_waste(), citymindist_prevents_city_on_tile(), cityresult_fill(), civil_war_possible(), civil_war_triggered(), clause_enabled(), combat_veterans(), connection_attach_real(), connection_detach(), cr_entry_plague_risk(), create_animals(), create_barbarian_player(), create_city_virtual(), create_event(), current_turn_timeout(), dai_build_adv_adjust(), dai_calc_data(), dai_diplomacy_actions(), dai_effect_value(), dai_go_to_war(), dai_goldequiv_clause(), dai_goldequiv_tech(), dai_is_unit_tired_waiting_boat(), dai_manage_cities(), dai_manage_government(), dai_manage_taxes(), dai_share(), dai_tech_base_want(), dai_treaty_evaluate(), debug_command(), diplo_wdg::diplo_wdg(), diplomacy_possible(), diplomat_get_tech(), do_airline(), do_border_vision_effect(), do_city_migration(), do_nuke_tile(), do_paradrop(), do_tech_parasite_effect(), do_unit_establish_trade(), freeciv::server::end_phase(), freeciv::server::end_turn(), end_turn(), endturn_callback(), establish_new_connection(), event_cache_add_for_player(), event_cache_add_for_players(), event_cache_match(), event_cache_remove_old(), freeciv::layer_grid::fill_sprite_array(), freeciv::layer_overlays::fill_sprite_array(), first_timeout_action(), food_starvation(), found_new_tech(), game_advance_year(), game_defaults(), game_map_init(), game_was_started(), generate_save_name(), get_airlift_text(), get_caravan_enter_city_trade_bonus(), get_city_dialog_airlift_text(), get_city_dialog_airlift_value(), get_city_dialog_illness_text(), get_entertainers(), get_info_label_text(), get_info_label_text_popup(), get_tax_rates(), get_trade_illness(), global_warming_scaled(), government_change(), great_wonder_is_available(), great_wonder_is_built(), great_wonder_is_destroyed(), great_wonder_owner(), handle_city_info(), handle_city_short_info(), handle_diplomacy_accept_treaty_req(), handle_edit_mode(), handle_edit_player(), handle_edit_toggle_fogofwar(), handle_end_phase(), handle_end_turn(), handle_event(), handle_game_info(), handle_game_load(), handle_new_year(), handle_player_change_government(), handle_player_phase_done(), handle_spaceship_launch(), handle_start_phase(), handle_tile_info(), handle_unit_orders(), handle_unit_packet_common(), helptext_advance(), helptext_extra(), helptext_government(), helptext_unit(), historian_generic(), img_createmap(), img_new(), impr_base_build_shield_cost(), impr_build_shield_cost(), impr_estimate_build_shield_cost(), impr_sell_gold(), init_tech(), initialize_globals(), is_allowed_to_take(), is_player_phase(), is_req_active(), is_req_unchanging(), is_stack_vulnerable(), is_tired_attack(), kill_player(), kill_unit(), kills_citizen_after_attack(), load_command(), load_ruleset_cities(), load_ruleset_game(), load_ruleset_governments(), load_ruleset_nations(), load_rulesetdir(), log_civ_score_now(), lose_tech(), main(), make_contact(), make_history_report(), manual_command(), map_calculate_borders(), map_change_seen(), map_claim_base(), map_claim_border(), map_claim_border_ownership(), map_update_border(), mapimg_create(), min_food_surplus_for_fastest_growth(), name_and_sort_items(), nation_history_gain(), nationset_action(), nuclear_winter_scaled(), package_city(), package_event_full(), package_player_info(), pf_attack_possible(), phasemode_help(), pick_free_tech(), pick_random_tech_to_lose(), player_angry_citizens(), player_can_place_extra(), player_get_expected_income(), player_has_really_useful_tech_parasite(), player_limit_to_max_rates(), player_mood(), player_restore_units(), player_set_to_ai_mode(), player_set_under_human_control(), player_tech_upkeep(), player_tile_init(), player_update_last_war_action(), plrdlg_col_state(), population_to_text(), popup_info_text(), freeciv::server::prepare_game(), rank_users(), really_handle_city_buy(), remove_player_command(), request_unit_pillage(), research_get(), research_goal_bulbs_required(), research_is_valid(), research_name_translation(), research_pretty_name(), research_rule_name(), research_total_bulbs_required(), researches_init(), reset_all_start_commands(), reset_command(), restrict_infra(), revolution_length(), rs_max_city_radius_sq(), sanity_check_ruleset_data(), save_cities_ruleset(), save_game_ruleset(), mr_menu::save_image(), scan_score_log(), science_dialog_text(), sell_random_unit(), send_city_info(), send_current_history_report(), send_delegation_info(), send_game_info(), send_packet_data(), send_tile_info(), send_to_metaserver(), send_turn_done(), send_year_to_clients(), set_ai_level(), set_default_city_manager(), setting_is_free_to_change(), settings_game_load(), settler_map_iterate(), sg_load_game(), sg_load_history(), sg_load_map_owner(), sg_load_player_city(), sg_load_player_city_citizens(), sg_load_player_main(), sg_load_player_unit(), sg_load_player_vision(), sg_load_players(), sg_load_players_basic(), sg_load_sanitycheck(), sg_load_settings(), sg_save_game(), sg_save_history(), sg_save_player_cities(), sg_save_player_units(), sg_save_player_vision(), diplo_wdg::show_menu(), show_new_turn_info(), show_players(), freeciv::server::shut_game_down(), signal_handler(), page_pregame::slot_pregame_observe(), split_player(), spy_poison(), spy_steal_shared(), spy_steal_some_maps(), srv_ready(), start_command(), page_pregame::start_page_menu(), start_revolution(), steal_a_tech(), suggest_tech_exchange(), summon_barbarians(), tdc_plr_get(), tech_transfer(), techs_have_fixed_costs(), techs_precalc_data(), text_happiness_cities(), text_happiness_luxuries(), text_happiness_nationality(), tile_border_source_radius_sq(), tile_border_source_strength(), tile_data_cache_new(), tile_set_owner(), timeout_action(), timeout_set_command(), timeout_show_command(), timing_log_real(), toggle_ai_player_direct(), trade_base_between_cities(), transfer_city(), turns_to_tech_loss(), unit_being_aggressive(), unit_bribe_cost(), unit_can_do_action_now(), unit_description(), unit_did_action(), unit_focus_advance(), unit_get_goods(), unit_move_consequences(), unit_restore_hitpoints(), unit_virtual_create(), unitwaittime_callback(), unleash_barbarians(), untargeted_revolution_allowed(), page_pregame::update_buttons(), update_city_activities(), update_city_activity(), update_diplomatics(), freeciv::server::update_game_state(), city_info::update_labels(), update_player_tile_last_seen(), update_revolution(), update_timeout(), pageGame::updateInfoLabelTimeout(), utype_build_shield_cost(), utype_build_shield_cost_base(), victory_enabled(), wonder_built(), wonder_destroyed(), wonder_is_built(), wonder_set_build_turn(), write_init_script(), and year_suffix().

◆ info [2/2]

bool civ_game::info

Definition at line 245 of file game.h.

◆ init_vis_radius_sq

int civ_game::init_vis_radius_sq

Definition at line 143 of file game.h.

◆ initial_diplomatic_state

diplstate_type civ_game::initial_diplomatic_state

Definition at line 114 of file game.h.

◆ kick_time

int civ_game::kick_time

Definition at line 144 of file game.h.

◆ last_ping

time_t civ_game::last_ping

Definition at line 204 of file game.h.

◆ last_updated_year

bool civ_game::last_updated_year

Definition at line 229 of file game.h.

◆ luadata

struct section_file* civ_game::luadata

Definition at line 239 of file game.h.

◆ max_players

int civ_game::max_players

Definition at line 146 of file game.h.

◆ max_size

int civ_game::max_size

Definition at line 243 of file game.h.

◆ maxconnectionsperhost

int civ_game::maxconnectionsperhost

Definition at line 145 of file game.h.

◆ 

struct { ... } civ_game::meta_info

◆ mgr_distance

int civ_game::mgr_distance

Definition at line 148 of file game.h.

◆ mgr_foodneeded

bool civ_game::mgr_foodneeded

Definition at line 149 of file game.h.

◆ mgr_nationchance

int civ_game::mgr_nationchance

Definition at line 150 of file game.h.

◆ mgr_turninterval

int civ_game::mgr_turninterval

Definition at line 151 of file game.h.

◆ mgr_worldchance

int civ_game::mgr_worldchance

Definition at line 152 of file game.h.

◆ migration

bool civ_game::migration

Definition at line 154 of file game.h.

◆ min_players

int civ_game::min_players

Definition at line 156 of file game.h.

◆ multiresearch

bool civ_game::multiresearch

Definition at line 153 of file game.h.

◆ 

struct { ... } civ_game::mutexes

◆ named_teams

int civ_game::named_teams

Definition at line 281 of file game.h.

◆ nationlist

char* civ_game::nationlist

Definition at line 269 of file game.h.

◆ nationset

char civ_game::nationset[MAX_LEN_NAME]

Definition at line 147 of file game.h.

◆ natural_city_names

bool civ_game::natural_city_names

Definition at line 157 of file game.h.

◆ nc_agovs

char** civ_game::nc_agovs

Definition at line 273 of file game.h.

◆ nc_astyles

char** civ_game::nc_astyles

Definition at line 279 of file game.h.

◆ nc_aterrs

char** civ_game::nc_aterrs

Definition at line 276 of file game.h.

◆ netwait

int civ_game::netwait

Definition at line 158 of file game.h.

◆ nuclear_winter

bool civ_game::nuclear_winter

Definition at line 224 of file game.h.

◆ nuclear_winter_percent

int civ_game::nuclear_winter_percent

Definition at line 225 of file game.h.

◆ num_phases

int civ_game::num_phases

Definition at line 159 of file game.h.

◆ occupychance

int civ_game::occupychance

Definition at line 160 of file game.h.

◆ onsetbarbarian

int civ_game::onsetbarbarian

Definition at line 161 of file game.h.

◆ phase_mode_stored

int civ_game::phase_mode_stored

Definition at line 210 of file game.h.

◆ phase_timer

civtimer* civ_game::phase_timer

Definition at line 205 of file game.h.

◆ pingtime

int civ_game::pingtime

Definition at line 162 of file game.h.

◆ pingtimeout

int civ_game::pingtimeout

Definition at line 163 of file game.h.

◆ plr_bg_color

struct rgbcolor* civ_game::plr_bg_color

◆ plr_colors

struct rgbcolor_list* civ_game::plr_colors

Definition at line 237 of file game.h.

◆ plrcolormode

enum plrcolor_mode civ_game::plrcolormode

Definition at line 114 of file game.h.

◆ ransom_gold

int civ_game::ransom_gold

Definition at line 164 of file game.h.

◆ razechance

int civ_game::razechance

Definition at line 165 of file game.h.

◆ revealmap

unsigned civ_game::revealmap

Definition at line 166 of file game.h.

◆ revolution_length

int civ_game::revolution_length

Definition at line 167 of file game.h.

◆ 

◆ 

struct { ... } civ_game::ruledit

◆ ruleset_capabilities

char* civ_game::ruleset_capabilities

◆ ruleset_description

◆ ruleset_init

bool civ_game::ruleset_init

Definition at line 106 of file game.h.

◆ ruleset_ready

bool civ_game::ruleset_ready

Definition at line 107 of file game.h.

◆ ruleset_summary

◆ rulesetdir

char civ_game::rulesetdir[MAX_LEN_NAME]

Definition at line 231 of file game.h.

◆ save_compress_type

enum compress_type civ_game::save_compress_type

Definition at line 169 of file game.h.

◆ save_frequency

int civ_game::save_frequency

Definition at line 172 of file game.h.

◆ save_known

bool civ_game::save_known

Definition at line 250 of file game.h.

◆ save_name

char civ_game::save_name[MAX_LEN_NAME]

Definition at line 214 of file game.h.

◆ save_nturns

int civ_game::save_nturns

Definition at line 171 of file game.h.

◆ 

struct { ... } civ_game::save_options

◆ save_private_map

bool civ_game::save_private_map

Definition at line 253 of file game.h.

◆ save_starts

bool civ_game::save_starts

Definition at line 252 of file game.h.

◆ save_timer

civtimer* civ_game::save_timer

Definition at line 211 of file game.h.

◆ savepalace

bool civ_game::savepalace

Definition at line 176 of file game.h.

◆ scenario

◆ scenario_desc

struct packet_scenario_description civ_game::scenario_desc

◆ scorefile

char civ_game::scorefile[MAX_LEN_NAME]

Definition at line 217 of file game.h.

◆ scorelog

bool civ_game::scorelog

Definition at line 215 of file game.h.

◆ scoreloglevel

enum scoreQtMsgType civ_game::scoreloglevel

Definition at line 215 of file game.h.

◆ scoreturn

int civ_game::scoreturn

Definition at line 218 of file game.h.

◆ seed

int civ_game::seed

Definition at line 220 of file game.h.

◆ seed_setting

int civ_game::seed_setting

Definition at line 219 of file game.h.

◆ 

struct { ... } civ_game::server

Referenced by freeciv::server::accept_tcp_connections(), action_target_neg_util(), ai_traits_init(), aifill(), api_edit_give_technology(), api_luadata_get_str(), api_methods_game_rulesetdir(), assign_player_colors(), autosaves_callback(), freeciv::server::begin_phase(), begin_phase(), begin_turn(), build_free_small_wonders(), check_city_migrations(), check_city_migrations_player(), check_for_full_turn_done(), check_for_game_over(), choose_tech(), city_build_free_buildings(), city_create_unit(), city_incite_cost(), city_increase_size(), civil_war(), civil_war_possible(), cmd_of_level(), conn_is_kicked(), connection_attach_real(), connection_detach(), create_city(), current_nationset(), dai_choose_diplomat_offensive(), dai_effect_value(), dai_goldequiv_clause(), dai_military_rampage(), debug_command(), destroy_extra(), diplomat_bribe(), diplomat_escape_full(), diplomat_may_lose_gold(), do_attack(), do_capture_units(), do_city_migration(), do_tech_parasite_effect(), freeciv::server::end_phase(), freeciv::server::end_turn(), end_turn(), establish_new_connection(), evaluate_city_name_priority(), event_cache_add_for_all(), event_cache_add_for_global_observers(), event_cache_add_for_player(), event_cache_add_for_players(), event_cache_data_new(), event_cache_match(), event_cache_remove_old(), find_dispersed_position(), fit_nationset_to_players(), game_defaults(), game_ruleset_free(), game_ruleset_init(), get_meta_type_string(), get_user_meta_message_string(), give_immediate_free_tech(), give_midgame_initial_units(), handle_diplomacy_accept_treaty_req(), handle_login_request(), handle_player_phase_done(), increase_timeout_because_unit_moved(), init_game_seed(), init_new_game(), is_allowed_city_name(), is_allowed_to_take(), is_valid_start_pos(), kill_player(), kill_unit(), ruledit_gui::launch_now(), load_city_name_list(), load_ruleset_cities(), load_ruleset_game(), load_ruleset_nations(), load_rulesetdir(), load_rulesets(), log_civ_score_now(), lookup_option_level(), main(), make_contact(), make_history_report(), manual_command(), map_change_seen(), map_claim_base(), mapimg_command(), package_unit(), place_starting_unit(), player_color_changeable(), player_preferred_color(), player_tile_init(), playercolor_add(), playercolor_count(), playercolor_free(), playercolor_get(), playercolor_init(), freeciv::server::pulse(), raze_city(), reload_rulesets_settings(), remove_city(), report_demographics(), research_apply_penalty(), revolution_length(), sanity_check_ruleset_data(), save_cities_ruleset(), save_game(), save_game_auto(), save_game_ruleset(), save_luadata(), save_nation(), save_nations_ruleset(), scan_score_log(), send_game_info(), send_pending_events(), freeciv::server::send_pings(), send_tile_info(), send_to_metaserver(), server_game_init(), server_quit(), set_rulesetdir(), set_user_meta_message_string(), settings_game_load(), settings_game_reset(), settings_game_save(), settings_game_start(), sg_load_game(), sg_load_map_startpos(), sg_load_player_cities(), sg_load_player_vision(), sg_load_researches(), sg_load_ruleset(), sg_load_sanitycheck(), sg_load_savefile(), sg_load_settings(), sg_save_game(), sg_save_map_known(), sg_save_map_startpos(), sg_save_player_vision(), sg_save_researches(), sg_save_savefile(), show_settings(), spaceship_calc_derived(), srv_init(), srv_ready(), srv_scores(), start_command(), steal_a_tech(), summon_barbarians(), take_command(), tech_transfer(), timeout_callback(), timeout_set_command(), timeout_show_command(), transfer_city(), transform_unit(), try_summon_barbarians(), unit_can_do_action_now(), unit_change_owner(), unit_did_action(), unit_move(), unit_survive_autoattack(), unleash_barbarians(), update_bulbs(), update_player_tile_last_seen(), update_timeout(), update_unit_activity(), and write_init_script().

◆ settings_gamestart_valid

bool civ_game::settings_gamestart_valid

Definition at line 235 of file game.h.

◆ spaceship_travel_time

int civ_game::spaceship_travel_time

Definition at line 168 of file game.h.

◆ start_city

bool civ_game::start_city

Definition at line 179 of file game.h.

◆ start_units

char civ_game::start_units[MAX_LEN_STARTUNIT]

Definition at line 178 of file game.h.

◆ start_year

int civ_game::start_year

Definition at line 180 of file game.h.

◆ techloss_restore

int civ_game::techloss_restore

Definition at line 181 of file game.h.

◆ techlost_donor

int civ_game::techlost_donor

Definition at line 182 of file game.h.

◆ techlost_recv

int civ_game::techlost_recv

Definition at line 183 of file game.h.

◆ techpenalty

int civ_game::techpenalty

Definition at line 184 of file game.h.

◆ threaded_save

bool civ_game::threaded_save

Definition at line 169 of file game.h.

◆ timeoutaddenemymove

int civ_game::timeoutaddenemymove

Definition at line 201 of file game.h.

◆ timeoutcounter

int civ_game::timeoutcounter

Definition at line 199 of file game.h.

◆ timeoutinc

int civ_game::timeoutinc

Definition at line 195 of file game.h.

◆ timeoutincmult

int civ_game::timeoutincmult

Definition at line 196 of file game.h.

◆ timeoutint

int civ_game::timeoutint

Definition at line 194 of file game.h.

◆ timeoutintinc

int civ_game::timeoutintinc

Definition at line 198 of file game.h.

◆ tinfo

◆ trait_dist

enum trait_dist_mode civ_game::trait_dist

Definition at line 154 of file game.h.

◆ turn_change_time

float civ_game::turn_change_time

Definition at line 212 of file game.h.

◆ turnblock

bool civ_game::turnblock

Definition at line 185 of file game.h.

◆ turns

int civ_game::turns

Definition at line 242 of file game.h.

◆ type

char civ_game::type[20]

Definition at line 258 of file game.h.

◆ unit_deallocate

void(* civ_game::unit_deallocate) (int unit_id)

Definition at line 288 of file game.h.

Referenced by game_remove_unit(), and srv_init().

◆ unitwaittime

int civ_game::unitwaittime

Definition at line 186 of file game.h.

◆ unitwaittime_extended

bool civ_game::unitwaittime_extended

Definition at line 187 of file game.h.

◆ unitwaittime_style

unsigned civ_game::unitwaittime_style

Definition at line 189 of file game.h.

◆ upgrade_veteran_loss

int civ_game::upgrade_veteran_loss

Definition at line 190 of file game.h.

◆ user_message

char civ_game::user_message[256]

Definition at line 257 of file game.h.

◆ veteran

◆ vision_reveal_tiles

bool civ_game::vision_reveal_tiles

Definition at line 191 of file game.h.