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

#include <unit.h>

Data Fields

const struct unit_typeutype
 
struct tiletile
 
int refcount
 
enum direction8 facing
 
struct playerowner
 
struct playernationality
 
int id
 
int homecity
 
int upkeep [O_LAST]
 
int moves_left
 
int hp
 
int veteran
 
int fuel
 
struct tilegoto_tile
 
enum unit_activity activity
 
enum gen_action action
 
int activity_count
 
struct extra_typeactivity_target
 
enum unit_activity changed_from
 
int changed_from_count
 
struct extra_typechanged_from_target
 
enum server_side_agent ssa_controller
 
bool moved
 
bool paradropped
 
bool done_moving
 
struct unittransporter
 
struct unit_list * transporting
 
struct goods_typecarrying
 
int battlegroup
 
bool has_orders
 
struct { 
 
   int   length 
 
   int   index 
 
   bool   repeat 
 
   bool   vigilant 
 
   struct unit_order *   list 
 
orders 
 
enum action_decision action_decision_want
 
struct tileaction_decision_tile
 
bool stay
 
int birth_turn
 
int current_form_turn
 
union { 
 
   struct { 
 
      enum unit_focus_status   focus_status 
 
      int   transported_by 
 
      bool   occupied 
 
      bool   colored 
 
      int   color_index 
 
      bool   asking_city_name 
 
      struct act_prob *   act_prob_cache 
 
   }   client 
 
   struct { 
 
      bool   debug 
 
      struct unit_adv *   adv 
 
      void *   ais [FREECIV_AI_MOD_LAST
 
      int   ord_map 
 
      int   ord_city 
 
      struct vision *   vision 
 
      time_t   action_timestamp 
 
      int   action_turn 
 
      struct unit_move_data *   moving 
 
      bool   dying 
 
      void(*   removal_callback )(struct unit *punit
 
      int   upkeep_paid [O_LAST
 
   }   server 
 
};  
 

Detailed Description

Definition at line 140 of file unit.h.

Field Documentation

◆ [union]

union { ... } unit

◆ act_prob_cache

struct act_prob* unit::act_prob_cache

◆ action

enum gen_action unit::action

◆ action_decision_tile

struct tile* unit::action_decision_tile

◆ action_decision_want

enum action_decision unit::action_decision_want

◆ action_timestamp

time_t unit::action_timestamp

Definition at line 248 of file unit.h.

Referenced by unit_can_do_action_now(), unit_did_action(), and unit_virtual_create().

◆ action_turn

int unit::action_turn

Definition at line 249 of file unit.h.

Referenced by unit_can_do_action_now(), unit_did_action(), and unit_virtual_create().

◆ activity

enum unit_activity unit::activity

Definition at line 159 of file unit.h.

Referenced by unit_hud_selector::activity_filter(), adv_follow_path(), adv_workers_road_bonus(), auto_worker_setup_work(), auto_workers_player(), begin_phase(), calc_activity(), can_unit_continue_current_activity(), can_unit_move_to_tile_with_notify(), can_units_do_activity(), can_units_do_activity_targeted(), check_unit_activity(), clear_unit_orders(), climate_change(), compat_post_load_030100(), create_unit_menu(), dai_manage_airunit(), dai_manage_military(), dai_military_attack(), dai_unit_goto_constrained(), dai_unit_new_task(), do_explore(), do_move_unit(), execute_orders(), expl_act_not_enabl(), fill_unit_sprite_array(), finalize_unit_phase_beginning(), find_best_focus_candidate(), get_fortified_defense_power(), get_unit_tile_pillage_set(), handle_player_diplstate(), handle_unit_change_activity(), handle_unit_change_activity_real(), handle_unit_orders(), handle_unit_packet_common(), handle_unit_sscs_set(), is_activity_on_tile(), is_unit_activity_on_tile(), package_short_unit(), package_unit(), place_partisans(), player_can_place_extra(), present_unit_callback(), real_unit_log(), request_unit_fortify(), request_unit_move_done(), request_unit_sentry(), select_tgt_extra(), select_tgt_unit(), set_unit_activity_internal(), sg_load_players(), sg_load_players(), sg_save_player_cities(), sg_save_player_units(), terrain_change_bounce_single_unit(), texai_tile_worker_task_select(), total_activity(), unit_activity_astr(), unit_activity_dependencies(), unit_activity_internal(), unit_activity_targeted_internal(), unit_can_move_to_tile(), unit_can_teleport_to_tile(), unit_focus_advance(), unit_focus_update(), unit_restore_hitpoints(), unit_upgrade_info(), unit_upgrade_test(), units_orders_city_dlg_callback(), units_report_command_callback(), unpackage_short_unit(), unpackage_unit(), update_unit_activity(), upgrade_server_side_agent(), usdlg_check_unit_activity(), usdlg_cmd_cursor_changed(), usdlg_cmd_exec_unit(), wakeup_sentried_units(), and unittype_item::wheelEvent().

◆ activity_count

int unit::activity_count

◆ activity_target

struct extra_type* unit::activity_target

◆ adv

struct unit_adv* unit::adv

◆ ais

Definition at line 240 of file unit.h.

Referenced by city_ai_data(), city_set_ai_data(), unit_ai_data(), and unit_set_ai_data().

◆ asking_city_name

bool unit::asking_city_name

Definition at line 228 of file unit.h.

Referenced by cancel_city(), finish_city(), handle_city_name_suggestion_info(), and unpackage_unit().

◆ battlegroup

int unit::battlegroup

◆ birth_turn

int unit::birth_turn

◆ carrying

struct goods_type* unit::carrying

◆ changed_from

enum unit_activity unit::changed_from

◆ changed_from_count

int unit::changed_from_count

◆ changed_from_target

struct extra_type* unit::changed_from_target

◆ [struct]

struct { ... } unit::client

Referenced by act_sel_done_primary(), api_methods_is_city_happy(), api_methods_is_city_unhappy(), append_city_buycost_string(), cancel_city(), cities_update_callback(), city_can_buy(), city_dialog_update_information(), city_dialog_update_information(), city_is_occupied(), city_packet_common(), city_report_dialog_update_city(), cityrep_buy(), client_remove_unit(), client_unit_init_act_prob_cache(), cr_entry_build_cost(), cr_entry_culture(), cr_entry_performance(), create_advances_list(), create_city_virtual(), create_improvements_list(), current_focus_append(), destroy_city_virtual(), diplomat_queue_handle_primary(), diplomat_queue_handle_primary(), fill_city_overlays_sprite_array(), fill_sprite_array(), fill_unit_sprite_array(), find_best_focus_candidate(), find_nearest_unit(), finish_city(), get_citizen_sprite(), get_city_dialog_culture_text(), get_city_sprite(), handle_city_info(), handle_city_name_suggestion_info(), handle_city_short_info(), handle_investigate_started(), handle_player_diplstate(), handle_start_phase(), handle_unit_info(), handle_unit_packet_common(), handle_unit_remove(), handle_unit_short_info(), is_plr_zoc_client(), key_unit_unload_all(), num_present_units_in_city(), num_supported_units_in_city(), player_clear(), popup_action_selection(), popup_city_dialog(), popup_hurry_production_dialog(), popup_sabotage_dialog(), popup_sabotage_dialog(), real_menus_update(), real_science_report_dialog_update(), refresh_city_dialog(), request_unit_move_done(), request_units_wait(), show_full_citybar(), spy_steal_popup_shared(), spy_steal_shared(), toggle_city_color(), toggle_unit_color(), unit_focus_advance(), unit_focus_set_status(), unit_virtual_create(), unit_virtual_destroy(), unpackage_short_unit(), unpackage_unit(), and update_total_buy_cost().

◆ color_index

int unit::color_index

Definition at line 226 of file unit.h.

Referenced by fill_city_overlays_sprite_array(), toggle_city_color(), and toggle_unit_color().

◆ colored

bool unit::colored

◆ current_form_turn

int unit::current_form_turn

◆ debug

bool unit::debug

◆ done_moving

bool unit::done_moving

◆ dying

bool unit::dying

◆ facing

enum direction8 unit::facing

◆ focus_status

enum unit_focus_status unit::focus_status

◆ fuel

int unit::fuel

◆ goto_tile

struct tile* unit::goto_tile

◆ has_orders

bool unit::has_orders

◆ homecity

int unit::homecity

Definition at line 148 of file unit.h.

Referenced by api_edit_create_unit_full(), caravan_find_best_destination(), caravan_find_best_destination_notransit(), caravan_find_best_destination_withtransit(), city_packet_common(), city_unit_unhappiness(), client_remove_unit(), create_city(), create_present_supported_units_widget_list(), dai_caravan_can_trade_cities_diff_cont(), dai_evaluate_tile_for_air_attack(), dai_find_strategic_airbase(), dai_is_unit_tired_waiting_boat(), dai_manage_caravan(), dai_military_defend(), dai_spend_gold(), dai_unit_make_homecity(), do_capture_units(), do_unit_change_homecity(), do_unit_establish_trade(), do_unit_make_homeless(), edit_buffer_copy(), expl_act_not_enabl(), goto_dialog::fill_tab(), find_something_to_kill(), game_remove_unit(), get_unit_info_label_text2(), get_units_report_data(), gui_refresh_unit_city_dialogs(), handle_unit_packet_common(), map_unit_homecity_enqueue(), middle_supported_unit_release(), package_unit(), place_unit(), player_restore_units(), popup_action_selection(), popup_info_text(), qtg_refresh_unit_city_dialogs(), real_menus_update(), refresh_unit_city_dialogs(), server_remove_unit_full(), sg_load_player_unit(), sg_load_player_unit(), sg_load_player_units(), sg_load_player_units(), sg_save_player_units(), mr_menu::slot_autocaravan(), supported_unit_activate_close_callback(), supported_unit_activate_close_callback(), supported_unit_callback(), supported_unit_callback(), supported_unit_middle_callback(), transfer_city(), transfer_city_units(), transform_unit(), unit_bribe_cost(), unit_can_est_trade_route_here(), unit_change_homecity_handling(), unit_change_owner(), unit_description(), unit_food_upkeep(), unit_gain_hitpoints(), unit_get_goods(), unit_move_consequences(), unit_virtual_create(), unit_virtual_prepare(), units_orders_city_dlg_callback(), units_report_update(), unpackage_unit(), hud_units::update_actions(), units_reports::update_units(), and usdlg_get_unit_descr().

◆ hp

int unit::hp

◆ id

int unit::id

Definition at line 147 of file unit.h.

Referenced by action_auto_perf_unit_do(), action_decision_handle(), action_decision_maybe_auto(), action_selection_refresh(), action_sub_target_id_for_action(), adjust_improvement_wants_by_effects(), adjust_workers_button_pressed(), adv_unit_execute_path(), adv_unit_move(), agents_city_changed(), agents_city_new(), agents_city_remove(), agents_unit_changed(), agents_unit_new(), agents_unit_remove(), api_edit_perform_action_unit_vs_city(), api_edit_perform_action_unit_vs_city_impr(), api_edit_perform_action_unit_vs_city_tech(), api_edit_perform_action_unit_vs_self(), api_edit_perform_action_unit_vs_tile(), api_edit_perform_action_unit_vs_tile_extra(), api_edit_perform_action_unit_vs_unit(), apply_result_on_server(), ask_server_for_actions(), auto_worker_setup_work(), building_removed(), caravan_optimize_callback(), cause_a_city_changed_for_agent(), cause_a_unit_changed_for_agent(), center_next_enemy_city(), center_next_player_city(), check_disasters(), check_units_single_tile(), cities_update_callback(), city_build_building(), city_build_unit(), city_buy_production(), city_change_production(), city_change_size(), city_change_specialist(), city_counters_refresh(), city_create_unit(), city_dialog_update_present_units(), city_dialog_update_supported_units(), city_freeze_workers_queue(), city_from_wonder(), city_is_virtual(), city_link(), city_list_find_number(), city_map_update_radius_sq(), city_model_fill(), city_model_fill_depr(), city_model_find(), city_model_set(), city_model_set_depr(), city_packet_common(), city_populate(), city_reduce_size(), city_refresh_queue_add(), city_rename(), city_sell_improvement(), city_set_worklist(), city_store_fill(), city_store_set(), city_toggle_worker(), citylog_map_workers(), citymap_turn_init(), cityopt_callback(), clear_worker_task(), client_plr_tile_city_id_get(), client_remove_city(), client_remove_unit(), clipboard_send_production_packet(), cm_print_city(), cma_is_city_under_agent(), cma_put_city_under_agent(), cma_release_city(), cmafec_get_fe_parameter(), cmafec_set_fe_parameter(), create_city(), create_present_supported_units_widget_list(), create_unit_menu(), current_focus_remove(), cycle_enemy_units(), dai_airlift(), dai_auto_settler_run(), dai_caravan_goto(), dai_city_choose_build(), dai_data_phase_begin(), dai_diplomat_bribe_nearby(), dai_diplomat_city(), dai_do_build_city(), dai_effect_value(), dai_hunter_manage(), dai_hunter_try_launch(), dai_manage_airunit(), dai_manage_caravan(), dai_manage_military(), dai_manage_paratrooper(), dai_military_attack(), dai_should_we_air_attack_tile(), dai_spend_gold(), dai_unit_attack(), dai_unit_make_homecity(), dai_unit_move(), dai_unit_new_task(), dai_upgrade_units(), diplomat_bribe_stack(), diplomat_investigate(), unit_item::disband(), disband_city(), do_attack(), do_capture_units(), do_disband_alternative(), do_unit_act_sel_vs(), do_unit_change_homecity(), do_unit_paradrop_to(), do_unit_teleport_to(), do_wipe_units(), domestic_advisor_choose_build(), editor_apply_tool(), execute_orders(), expl_act_not_enabl(), goto_dialog::fill_tab(), find_best_city_placement(), find_something_to_kill(), finish_city(), game_remove_city(), game_remove_unit(), goto_map_unit(), handle_city(), handle_city_info(), handle_city_make_specialist(), handle_city_make_worker(), handle_city_remove(), handle_city_short_info(), handle_edit_city_create(), handle_edit_player_vision(), handle_edit_unit_create(), handle_tile_info(), handle_unit_actions(), handle_unit_get_actions(), handle_unit_orders(), handle_unit_packet_common(), handle_unit_remove(), handle_unit_sscs_set(), handle_unit_type_upgrade(), idex_register_city(), idex_register_unit(), idex_unregister_city(), idex_unregister_unit(), immediate_destination(), initialize_globals(), key_unit_action_select(), key_unit_assign_battlegroup(), list_store_append_player_cities(), make_path_orders(), military_advisor_choose_build(), move_unit_map_canvas(), non_allied_not_listed_at(), objbind_get_value_from_object(), objbind_pack_current_values(), occupy_move(), one_city_trade_benefit(), package_and_send_worker_tasks(), package_city(), package_short_unit(), package_unit(), place_unit(), player_restore_units(), popup_action_selection(), popup_bribe_stack_dialog(), popup_bribe_stack_dialog(), popup_bribe_unit_dialog(), popup_bribe_unit_dialog(), popup_incite_dialog(), popup_incite_dialog(), popup_pillage_dialog(), popup_sabotage_dialog(), popup_sabotage_dialog(), popup_upgrade_dialog(), present_unit_callback(), put_one_tile(), rally_set_tile(), random_movements(), real_bodyguard_log(), real_city_report_dialog_update(), real_city_report_update_city(), real_info_city_report_dialog_update(), real_menus_update(), real_unit_log(), reality_check_city(), remove_city(), request_move_unit_direction(), request_new_unit_activity_targeted(), request_orders_cleared(), request_unit_airlift(), request_unit_build_city(), request_unit_caravan_action(), request_unit_change_homecity(), request_unit_disband(), request_unit_non_action_move(), request_unit_ssa_set(), request_unit_upgrade(), select_tgt_extra(), select_tgt_unit(), send_connect_route(), send_path_orders(), send_rally_path_orders(), server_remove_unit_full(), set_city_workertask(), set_unit_icon(), sg_load_player_cities(), sg_load_player_cities(), sg_load_player_city(), sg_load_player_city(), sg_load_player_unit(), sg_load_player_unit(), sg_load_player_units(), sg_load_player_units(), sg_load_sanitycheck(), sg_load_sanitycheck(), sg_save_counters(), sg_save_map_worked(), sg_save_player_cities(), sg_save_player_units(), diplo_wdg::show_menu(), mr_menu::slot_delayed_goto(), spy_send_sabotage_list(), supported_unit_callback(), choice_dialog::switch_target(), texai_check_messages(), texai_city_destroyed(), texai_city_info_recv(), texai_city_update(), texai_city_worker_requests_create(), texai_unit_destroyed(), texai_unit_info_recv(), texai_unit_move_seen(), texai_unit_update(), text_tag_initv(), text_tag_start_sequence(), tgt_extra_change_callback(), tgt_unit_change_callback(), throw_units_from_illegal_cities(), transfer_city(), transfer_city_units(), transfer_unit(), unit_activity_astr(), unit_activity_handling_targeted(), unit_conquer_city(), unit_def_rating(), unit_description(), unit_do_disband_trad(), unit_enter_hut(), unit_food_upkeep(), unit_foodbox_cost(), unit_goes_out_of_sight(), unit_is_virtual(), unit_link(), unit_list_compare(), unit_list_find(), unit_move(), unit_move_consequences(), unit_move_data_get(), unit_move_handling(), unit_select_dialog_popup(), unit_survive_autoattack(), unit_virtual_create(), unpackage_short_unit(), unpackage_unit(), update_city_activity(), update_dumb_city(), update_goto_dialog(), upkeep_kill_unit(), usdlg_get_unit_descr(), usdlg_tab_append_units(), vision_site_new_from_city(), vision_site_update_from_city(), wonder_built(), wonder_destroyed(), worker_evaluate_city_requests(), worker_evaluate_improvements(), and worklist_change_build_target().

◆ index

int unit::index

◆ length

int unit::length

◆ list

struct unit_order* unit::list

◆ moved

bool unit::moved

◆ moves_left

int unit::moves_left

Definition at line 152 of file unit.h.

Referenced by action_mp_full_makes_legal(), action_success_pay_mp(), action_success_target_pay_mp(), adv_follow_path(), adv_unit_execute_path(), adv_unit_move(), api_edit_create_unit_full(), auto_worker_setup_work(), auto_workers_player(), caravan_find_best_destination(), caravan_find_best_destination_withtransit(), units_select::create_pixmap(), create_unit(), create_unit_full(), dai_auto_settler_run(), dai_caravan_goto(), dai_diplomat_bribe_nearby(), dai_diplomat_city(), dai_find_strategic_airbase(), dai_gothere(), dai_manage_airunit(), dai_manage_diplomat(), dai_manage_military(), dai_manage_paratrooper(), dai_manage_unit(), dai_military_attack(), dai_military_rampage(), dai_unit_bodyguard_move(), dai_unit_can_strike_my_unit(), dai_unit_goto_constrained(), dai_unit_move(), do_airline(), do_attack(), do_expel_unit(), execute_orders(), fill_unit_sprite_array(), find_best_focus_candidate(), find_nearest_airbase(), find_nearest_unit(), find_rampage_target(), find_something_to_bomb(), get_activity_rate_this_turn(), get_attack_power(), goto_fill_parameter_full(), handle_edit_unit(), handle_unit_orders(), handle_unit_packet_common(), handle_unit_server_side_agent_set(), unit_hud_selector::hp_filter(), manage_auto_explorer(), objbind_get_value_from_object(), objbind_pack_current_values(), occupy_move(), package_unit(), pf_fuel_map_iterate(), pft_fill_unit_default_parameter(), player_is_watching(), player_restore_units(), quickselect(), random_movements(), set_unit_activity_internal(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), teleport_unit_to_city(), test_unit_can_airlift_to(), transform_unit(), unit_activity_astr(), unit_att_rating_now(), unit_change_owner(), unit_focus_update(), unit_move(), unit_restore_movepoints(), unit_survive_autoattack(), unit_tired_attack_string(), unit_virtual_create(), unit_virtual_prepare(), unpackage_unit(), and hud_units::update_actions().

◆ moving

struct unit_move_data* unit::moving

◆ nationality

struct player* unit::nationality

◆ occupied

bool unit::occupied

◆ ord_city

int unit::ord_city

◆ ord_map

int unit::ord_map

◆ [struct]

struct { ... } unit::orders

◆ owner

struct player* unit::owner

◆ paradropped

bool unit::paradropped

◆ refcount

int unit::refcount

Definition at line 143 of file unit.h.

Referenced by unit_virtual_create(), and unit_virtual_destroy().

◆ removal_callback

void(* unit::removal_callback) (struct unit *punit)

◆ repeat

bool unit::repeat

◆ [struct]

struct { ... } unit::server

Referenced by adjust_improvement_wants_by_effects(), adv_city_alloc(), adv_city_free(), adv_city_update(), adv_city_worker_act_get(), adv_city_worker_act_set(), adv_city_worker_extra_get(), adv_city_worker_extra_set(), adv_city_worker_rmextra_get(), adv_city_worker_rmextra_set(), adv_unit_new_task(), assess_danger(), auto_arrange_workers(), auto_worker_setup_work(), ba_human_wants(), broadcast_city_info(), building_advisor(), building_advisor_choose(), calculate_city_clusters(), citizens_update(), city_ai_data(), city_balance_treasury_units(), city_freeze_workers(), city_freeze_workers_queue(), city_illness_check(), city_illness_strike(), city_map_update_empty(), city_map_update_radius_sq(), city_map_update_worker(), city_migration_score(), city_refresh(), city_refresh_queue_add(), city_refresh_queue_processing(), city_refresh_vision(), city_set_ai_data(), city_thaw_workers(), citymap_turn_init(), collect_ransom(), compar_unit_ord_map(), create_city(), create_city_virtual(), dai_auto_settler_run(), dai_build_adv_adjust(), dai_build_adv_override(), dai_effect_value(), dai_manage_cities(), dai_set_defenders(), dai_unit_new_task(), debug_command(), handle_unit_change_activity_real(), handle_web_cma_set(), kill_unit(), map_change_seen(), military_advisor_choose_build(), package_city(), place_unit(), player_balance_treasury_units(), player_balance_treasury_units_and_buildings(), remove_city(), send_city_info(), send_city_info_at_tile(), send_unit_info(), server_game_free(), server_remove_unit_full(), sg_load_player_cities(), sg_load_player_cities(), sg_load_player_city(), sg_load_player_city(), sg_load_player_unit(), sg_load_player_unit(), sg_load_player_units(), sg_load_player_units(), sg_load_players(), sg_load_players(), sg_save_player_cities(), sg_save_player_units(), sync_cities(), transfer_city(), transfer_city_units(), transfer_unit(), uk_rem_gold_callback(), unit_ai_data(), unit_can_do_action_now(), unit_change_homecity_handling(), unit_did_action(), unit_goes_out_of_sight(), unit_move_by_data(), unit_move_data_get(), unit_ordering_calc(), unit_refresh_vision(), unit_set_ai_data(), unit_set_removal_callback(), unit_unset_removal_callback(), unit_virtual_create(), unit_virtual_destroy(), update_city_activity(), update_national_activities(), vision_clear_sight(), and wipe_unit_full().

◆ ssa_controller

enum server_side_agent unit::ssa_controller

◆ stay

bool unit::stay

◆ tile

struct tile* unit::tile

Definition at line 142 of file unit.h.

Referenced by action_may_happen_unit_on_city(), action_prob_vs_city_full(), actres_possible(), adjust_improvement_wants_by_effects(), adjust_wants_for_reqs(), adv_data_phase_init(), adv_unit_move(), agents_city_new(), agents_city_remove(), api_effects_tile_bonus(), api_methods_city_tile_get(), assess_defense_backend(), assess_defense_quadratic(), begin_turn(), broadcast_city_info(), building_advisor(), button_down_citymap(), calculate_city_clusters(), can_city_build_improvement_direct(), can_city_build_improvement_later(), can_city_build_unit_direct(), can_city_build_unit_later(), can_disaster_happen(), city_widget::center(), center_iterate(), center_next_enemy_city(), center_next_player_city(), center_on_something(), city_base_to_city_map(), city_change_size(), city_create_unit(), city_gold_worth(), city_got_defense_effect(), city_incite_cost(), city_landlocked_sell_coastal_improvements(), city_populate(), city_production_unit_veteran_level(), city_reduce_size(), city_select_coastal_callback(), city_select_coastal_callback(), city_style(), city_support(), city_tile_cache_update(), city_tile_output(), city_unit_present(), city_widget::city_view(), cityrep_buy(), civil_war(), client_remove_unit(), cr_entry_attack(), cr_entry_continent(), cr_entry_defense(), cr_entry_present(), create_city_virtual(), cycle_enemy_units(), dai_action_value_unit_vs_city(), dai_auto_settler_run(), dai_can_city_build_improvement_later(), dai_caravan_can_trade_cities_diff_cont(), dai_caravan_goto(), dai_choose_defender_versus(), dai_choose_help_wonder(), dai_choose_paratrooper(), dai_choose_trade_route(), dai_city_sell_noncritical(), dai_diplomat_defend(), dai_effect_value(), dai_find_boat_for_unit(), dai_find_source_building(), dai_hunter_find(), dai_hunter_missile_want(), dai_manage_diplomat(), dai_manage_hitpoint_recovery(), dai_manage_paratrooper(), dai_military_attack(), dai_military_attack_barbarian(), dai_military_defend(), dai_military_findjob(), dai_set_defenders(), dai_spend_gold(), dai_unit_move(), dai_upgrade_units(), dai_wants_defender_against(), defense_multiplication(), diplomat_get_tech(), diplomat_incite(), diplomat_investigate(), diplomat_sabotage(), disband_city(), do_airline(), do_attack(), do_reveal_effects(), draw_calculated_trade_routes(), fill_city_overlays_sprite_array(), goto_dialog::fill_tab(), find_city_callback(), find_city_or_settler_near_tile(), find_closest_city(), find_response(), find_selection_callback(), find_something_to_kill(), game_remove_unit(), get_city_bonus(), get_city_tile_output_bonus(), get_tile_output_bonus(), get_total_attack_power(), get_unittype_bonus(), goto_dialog::go_to_city(), goods_can_be_provided(), goto_city_callback(), goto_cmd_callback(), handle_city(), handle_city_change(), handle_city_info(), handle_city_rename(), handle_city_short_info(), handle_city_update_counters(), handle_diplomacy_create_clause_req(), hud_unit_combat::hud_unit_combat(), improvement_obsolete(), is_action_enabled_unit_on_city_full(), is_action_possible(), is_action_possible_on_city(), is_city_center(), is_citytile_req_active(), unit_hud_selector::island_filter(), link_mark_tile(), max_tile_trade(), military_advisor_choose_build(), min_food_surplus_for_fastest_growth(), nearest_gov_center(), choice_dialog::next_unit(), num_continent_buildings(), num_present_units_in_city(), place_unit(), player_distance_to_player(), popup_hurry_production_dialog(), popup_incite_dialog(), popup_iterate(), choice_dialog::prev_unit(), process_attacker_want(), qtg_refresh_unit_city_dialogs(), real_city_dialog_refresh(), real_city_log(), really_handle_city_buy(), really_handle_city_sell(), refresh_dumb_city(), regen_turns(), remove_allied_visibility(), trade_generator::remove_city(), right_button_down_citymap(), same_island_iterate(), sdi_try_defend(), search_homecity_for_caravan(), city_widget::select_coastal(), city_widget::select_same_island(), send_city_info(), choice_dialog::set_layout(), sg_load_player_city(), sg_load_player_city(), show_full_citybar(), mr_menu::slot_execute_orders(), choice_dialog::switch_target(), teleport_unit_to_city(), texai_unit_destruction_recv(), texai_unit_moved_recv(), toggle_city_color(), transfer_city_units(), transfer_unit(), unit_activity_handling_targeted(), unit_attack_civilian_casualties(), unit_bombard(), unit_change_homecity_handling(), unit_tile_set(), unit_virtual_create(), hud_units::update_actions(), update_city_description(), choice_dialog::update_dialog(), update_dumb_city(), upgrade_all_city_extras(), upgrade_city_extras(), utype_needs_improvement(), vision_site_update_from_city(), and worklist_item_postpone_req_vec().

◆ transported_by

int unit::transported_by

◆ transporter

struct unit* unit::transporter

◆ transporting

struct unit_list* unit::transporting

◆ upkeep

int unit::upkeep[O_LAST]

◆ upkeep_paid

int unit::upkeep_paid[O_LAST]

◆ utype

const struct unit_type* unit::utype

◆ veteran

int unit::veteran

◆ vigilant

bool unit::vigilant

◆ vision

struct vision* unit::vision