Freeciv-3.3
Loading...
Searching...
No Matches
Data Fields
player Struct Reference

#include <player.h>

Data Fields

struct player_slotslot
 
char name [MAX_LEN_NAME]
 
char username [MAX_LEN_NAME]
 
bool unassigned_user
 
char ranked_username [MAX_LEN_NAME]
 
bool unassigned_ranked
 
int user_turns
 
bool is_male
 
struct governmentgovernment
 
struct governmenttarget_government
 
struct nation_typenation
 
struct teamteam
 
bool is_ready
 
bool phase_done
 
bool ai_phase_done
 
int nturns_idle
 
int turns_alive
 
bool is_alive
 
bool is_winner
 
int last_war_action
 
int revolution_finishes
 
int primary_capital_id
 
bv_player real_embassy
 
const struct player_diplstate ** diplstates
 
struct nation_stylestyle
 
int music_style
 
struct city_list * cities
 
struct unit_list * units
 
struct player_score score
 
struct player_economic economic
 
struct player_spaceship spaceship
 
struct player_ai ai_common
 
const struct ai_typeai
 
charsavegame_ai_type_name
 
bv_plr_flags flags
 
bool was_created
 
bool random_name
 
bool is_connected
 
struct connectioncurrent_conn
 
struct conn_listconnections
 
int autoselect_weight
 
bv_player gives_shared_vision
 
bv_player gives_shared_tiles
 
int wonders [B_LAST]
 
struct attribute_block_s attribute_block
 
struct attribute_block_s attribute_block_buffer
 
struct dbv tile_known
 
struct rgbcolorrgb
 
struct multiplier_value multipliers [MAX_NUM_MULTIPLIERS]
 
int history
 
union { 
 
   struct { 
 
      bv_pstatus   status 
 
      struct player_tile *   private_map 
 
      bool   border_vision 
 
      bv_player   really_gives_vision 
 
      bv_debug   debug 
 
      struct adv_data *   adv 
 
      void *   ais [FREECIV_AI_MOD_LAST
 
      char   delegate_to [MAX_LEN_NAME
 
      char   orig_username [MAX_LEN_NAME
 
      int   huts 
 
      int   bulbs_last_turn 
 
   }   server 
 
   struct { 
 
      struct dbv   tile_vision [V_COUNT
 
      enum mood_type   mood 
 
      int   tech_upkeep 
 
      bool   color_changeable 
 
      int   culture 
 
   }   client 
 
};  
 

Detailed Description

Definition at line 248 of file player.h.

Field Documentation

◆ [union]

union { ... } player

◆ adv

struct adv_data* player::adv

◆ ai

const struct ai_type* player::ai

◆ ai_common

struct player_ai player::ai_common

◆ ai_phase_done

bool player::ai_phase_done

Definition at line 264 of file player.h.

Referenced by cai_do_first_activities(), cai_restart_phase(), stub_end_turn(), and texai_refresh().

◆ ais

void* player::ais[FREECIV_AI_MOD_LAST]

Definition at line 336 of file player.h.

Referenced by player_ai_data(), and player_set_ai_data().

◆ attribute_block

struct attribute_block_s player::attribute_block

◆ attribute_block_buffer

struct attribute_block_s player::attribute_block_buffer

Definition at line 308 of file player.h.

Referenced by generic_handle_player_attribute_chunk(), player_clear(), and player_defaults().

◆ autoselect_weight

int player::autoselect_weight

◆ border_vision

bool player::border_vision

◆ bulbs_last_turn

int player::bulbs_last_turn

◆ cities

struct city_list* player::cities

Definition at line 281 of file player.h.

Referenced by achievement_check(), trade_generator::add_all_cities(), adjust_improvement_wants_by_effects(), adv_best_government(), adv_data_phase_init(), api_methods_player_num_cities(), api_methods_private_player_city_list_head(), append_cma_to_menu_item(), ba_human_wants(), base_want(), build_free_small_wonders(), building_advisor(), buy_production_in_selected_cities(), calc_civ_score(), calculate_city_clusters(), calculate_want_for_paratrooper(), center_on_something(), check_city_migrations_player(), city_build_building(), city_dialog_update_prev_next(), city_map_update_all_cities_for_player(), city_packet_common(), city_refresh_for_player(), city_tc_effect_refresh(), civ_population(), civil_war(), civil_war_possible(), civil_war_triggered(), client_change_all(), clipboard_paste_production(), collect_currently_building_targets(), create_city(), create_governor_menu(), dai_adjust_policies(), dai_assess_danger_player(), dai_build_adv_adjust(), dai_build_adv_init(), dai_calc_data(), dai_caravan_can_trade_cities_diff_cont(), dai_choose_help_wonder(), dai_choose_trade_route(), dai_content_effect_value(), dai_effect_value(), dai_gained_control(), dai_goldequiv_clause(), dai_gov_value(), dai_government_change(), dai_manage_cities(), dai_manage_taxes(), dai_process_defender_want(), dai_select_tech(), dai_set_defenders(), dai_spend_gold(), dai_tech_effect_values(), dai_treaty_accepted(), dai_treaty_evaluate(), dai_war_desire(), dai_wonder_city_distance(), disband_all_units(), domestic_advisor_choose_build(), draw_trade_routes(), goto_dialog::fill_tab(), find_neediest_airlift_city(), game_remove_city(), city_widget::gen_production_labels(), get_corruption(), get_economy_report_data(), get_economy_report_units_data(), get_info_label_text_popup(), get_riots(), get_units_report_data(), handle_start_phase(), initialize_infrastructure_cache(), is_allowed_city_name(), kill_player(), list_store_append_player_cities(), city_dialog::next_city(), next_prev_city_dlg_callback(), ok_sell_impr_callback(), player_balance_treasury_units_and_buildings(), player_base_citizen_happiness(), player_can_do_action_result(), player_clear(), player_culture(), player_defaults(), player_destroy(), player_distance_to_player(), player_get_expected_income(), player_tech_upkeep(), popup_sell_impr_callback(), city_dialog::prev_city(), process_attacker_want(), real_city_report_dialog_update(), real_info_city_report_dialog_update(), refresh_player_cities_vision(), remove_obsolete_buildings(), search_homecity_for_caravan(), sell_all_improvements(), send_city_turn_notifications(), send_player_cities(), server_remove_player(), set_client_state(), sg_load_player_cities(), sg_load_player_cities(), sg_save_player_cities(), switch_city_callback(), texai_check_messages(), text_happiness_cities(), update_capital(), update_city_activities(), upgrade_all_city_extras(), worker_evaluate_city_requests(), and worker_evaluate_improvements().

◆ [struct]

struct { ... } player::client

◆ color_changeable

bool player::color_changeable

Definition at line 365 of file player.h.

Referenced by handle_player_info().

◆ connections

struct conn_list* player::connections

Definition at line 298 of file player.h.

Referenced by api_edit_tile_hide(), api_methods_player_controlling_gui(), api_play_music(), api_popup_image(), buffer_shared_vision(), city_counters_refresh(), city_refresh_for_player(), col_host(), connection_attach_real(), connection_detach(), dai_diplo_notify(), dai_manage_taxes(), diplomat_incite(), diplomat_investigate(), disable_fog_of_war_player(), do_unit_establish_trade(), do_unit_upgrade(), enable_fog_of_war_player(), establish_embassy(), get_ping_time_text(), give_allied_visibility(), government_change(), handle_city_name_suggestion_req(), handle_conn_info(), handle_diplomacy_accept_treaty_req(), handle_diplomacy_create_clause_req(), handle_diplomacy_init_meeting_req(), handle_diplomacy_remove_clause_req(), handle_edit_player_remove(), handle_edit_player_vision(), handle_player_change_government(), handle_player_info(), handle_player_place_infra(), handle_player_rates(), handle_player_remove(), handle_unit_sscs_set(), handle_unit_type_upgrade(), handle_worker_task(), map_change_seen(), notify_player(), player_defaults(), player_destroy(), player_reply_dest(), reality_check_city(), really_diplomacy_cancel_meeting(), really_handle_city_buy(), really_handle_city_sell(), reject_all_treaties(), remove_dumb_city(), remove_player_from_maps(), send_city_info(), send_city_info_at_tile(), server_remove_player(), take_command(), transform_unit(), unbuffer_shared_vision(), unit_conquer_city(), unit_do_help_build(), unit_enter_hut(), unit_goes_out_of_sight(), update_revolution(), and upgrade_all_city_extras().

◆ culture

int player::culture

◆ current_conn

struct connection* player::current_conn

◆ debug

bv_debug player::debug

Definition at line 332 of file player.h.

Referenced by debug_command(), and server_player_init().

◆ delegate_to

char player::delegate_to[MAX_LEN_NAME]

Definition at line 339 of file player.h.

Referenced by player_delegation_get(), player_delegation_set(), and server_player_init().

◆ diplstates

const struct player_diplstate** player::diplstates

◆ economic

struct player_economic player::economic

Definition at line 284 of file player.h.

Referenced by achievement_check(), actres_possible(), add_tax_income(), api_edit_change_gold(), api_edit_change_infrapoints(), api_methods_player_gold(), api_methods_player_infrapoints(), apply_disaster(), apply_taxrates_callback(), buy_production_in_selected_cities(), check_player_max_rates(), city_balance_treasury_buildings(), city_balance_treasury_units(), city_build_building(), common_taxrates_callback(), create_animals(), create_diplomacy_dialog(), create_rates_dialog(), dai_action_value_unit_vs_city(), dai_choose_diplomat_offensive(), dai_choose_trade_route(), dai_city_want(), dai_diplomat_bribe_nearby(), dai_manage_cities(), dai_manage_taxes(), dai_spend_gold(), dai_upgrade_units(), dai_war_desire(), diplo_dialog_returnkey(), diplomat_bribe_stack(), diplomat_bribe_unit(), diplomat_incite(), do_sell_building(), do_unit_establish_trade(), do_unit_upgrade(), economy_report_dialog_popup(), explain_why_no_action_enabled(), fc_double_edge::fc_double_edge(), find_city_to_diplomat(), get_gold(), get_info_label_text(), get_info_label_text_popup(), get_luxrate(), get_scirate(), get_tax_rates(), get_taxrate(), government_change(), handle_diplomacy_accept_treaty_req(), handle_edit_player(), handle_edit_player_create(), handle_new_year(), handle_player_info(), handle_player_place_infra(), handle_player_rates(), hut_get_limited(), illegal_action_msg(), military_advisor_choose_build(), plr_widget::nation_selected(), objbind_get_value_from_object(), objbind_pack_current_values(), package_player_info(), player_balance_treasury_units(), player_balance_treasury_units_and_buildings(), player_defaults(), player_limit_to_max_rates(), real_economy_report_dialog_update(), really_handle_city_buy(), sell_random_building(), sg_load_player_main(), sg_load_player_main(), sg_save_player_main(), show_new_turn_info(), split_player(), unit_conquer_city(), unit_upgrade_info(), unit_upgrade_test(), city_dialog::update_buy_button(), update_city_activity(), fc_sidewidget::update_final_pixmap(), fc_client::update_info_label(), update_info_label(), update_infra_dialog(), update_intel_dialog(), update_national_activities(), and fc_client::update_sidebar_tooltips().

◆ flags

bv_plr_flags player::flags

◆ gives_shared_tiles

bv_player player::gives_shared_tiles

◆ gives_shared_vision

bv_player player::gives_shared_vision

Definition at line 302 of file player.h.

Referenced by handle_player_info(), package_player_info(), and player_defaults().

◆ government

struct government* player::government

◆ history

int player::history

◆ huts

int player::huts

◆ is_alive

bool player::is_alive

◆ is_connected

bool player::is_connected

◆ is_male

bool player::is_male

◆ is_ready

bool player::is_ready

◆ is_winner

bool player::is_winner

Definition at line 269 of file player.h.

Referenced by check_for_game_over(), player_defaults(), and report_final_scores().

◆ last_war_action

int player::last_war_action

◆ mood

enum mood_type player::mood

Definition at line 361 of file player.h.

Referenced by handle_player_info(), and start_style_music().

◆ multipliers

◆ music_style

int player::music_style

Definition at line 280 of file player.h.

Referenced by handle_player_info(), player_defaults(), and start_style_music().

◆ name

char player::name[MAX_LEN_NAME]

◆ nation

struct nation_type* player::nation

◆ nturns_idle

int player::nturns_idle

◆ orig_username

char player::orig_username[MAX_LEN_NAME]

◆ phase_done

bool player::phase_done

◆ primary_capital_id

int player::primary_capital_id

◆ private_map

struct player_tile* player::private_map

◆ random_name

bool player::random_name

Definition at line 295 of file player.h.

Referenced by aifill(), create_command_pregame(), player_defaults(), and player_set_nation_full().

◆ ranked_username

char player::ranked_username[MAX_LEN_NAME]

◆ real_embassy

bv_player player::real_embassy

◆ really_gives_vision

bv_player player::really_gives_vision

Definition at line 329 of file player.h.

Referenced by server_player_init().

◆ revolution_finishes

int player::revolution_finishes

◆ rgb

struct rgbcolor* player::rgb

◆ savegame_ai_type_name

char* player::savegame_ai_type_name

Definition at line 290 of file player.h.

Referenced by player_clear(), player_defaults(), and server_create_player().

◆ score

struct player_score player::score

◆ [struct]

struct { ... } player::server

◆ slot

struct player_slot* player::slot

◆ spaceship

struct player_spaceship player::spaceship

◆ status

bv_pstatus player::status

◆ style

struct nation_style* player::style

◆ target_government

struct government* player::target_government

◆ team

struct team* player::team

◆ tech_upkeep

int player::tech_upkeep

Definition at line 363 of file player.h.

Referenced by handle_player_info().

◆ tile_known

struct dbv player::tile_known

◆ tile_vision

struct dbv player::tile_vision[V_COUNT]

◆ turns_alive

int player::turns_alive

◆ unassigned_ranked

bool player::unassigned_ranked

◆ unassigned_user

bool player::unassigned_user

◆ units

struct unit_list* player::units

◆ user_turns

int player::user_turns

Definition at line 256 of file player.h.

Referenced by connection_attach_real(), and player_defaults().

◆ username

char player::username[MAX_LEN_NAME]

◆ was_created

bool player::was_created

◆ wonders

int player::wonders[B_LAST]