Freeciv-3.3
|
#include <unit.h>
union { ... } unit |
Definition at line 231 of file unit.h.
Referenced by act_sel_done_primary(), client_unit_init_act_prob_cache(), create_advances_list(), create_improvements_list(), diplomat_queue_handle_primary(), diplomat_queue_handle_primary(), popup_action_selection(), popup_sabotage_dialog(), popup_sabotage_dialog(), spy_steal_popup_shared(), spy_steal_shared(), unit_virtual_create(), and unit_virtual_destroy().
enum gen_action unit::action |
Definition at line 160 of file unit.h.
Referenced by popup_find_dialog(), real_info_city_report_dialog_update(), set_unit_activity_internal(), sg_save_player_cities(), sg_save_player_units(), unit_shield_value(), and update_unit_activity().
Definition at line 206 of file unit.h.
Referenced by action_decision_handle(), action_decision_request(), ask_server_for_actions(), execute_orders(), handle_unit_packet_common(), handle_unit_sscs_set(), package_unit(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_move(), unit_move_handling(), unit_virtual_create(), and unpackage_unit().
enum action_decision unit::action_decision_want |
Definition at line 205 of file unit.h.
Referenced by execute_orders(), handle_unit_packet_common(), handle_unit_sscs_set(), package_unit(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), should_ask_server_for_actions(), unit_move(), unit_move_handling(), unit_virtual_create(), and unpackage_unit().
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().
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().
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().
int unit::activity_count |
Definition at line 165 of file unit.h.
Referenced by calc_activity(), finalize_unit_phase_beginning(), handle_unit_packet_common(), package_unit(), set_unit_activity(), set_unit_activity_internal(), set_unit_activity_targeted(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), total_activity(), unpackage_unit(), and update_unit_activity().
struct extra_type* unit::activity_target |
Definition at line 167 of file unit.h.
Referenced by actres_possible(), adv_follow_path(), adv_workers_road_bonus(), calc_activity(), can_unit_continue_current_activity(), climate_change(), compat_post_load_030100(), fill_unit_sprite_array(), finalize_unit_phase_beginning(), get_unit_tile_pillage_set(), handle_unit_change_activity_real(), handle_unit_packet_common(), package_short_unit(), package_unit(), set_unit_activity_internal(), set_unit_activity_targeted(), sg_load_players(), sg_load_players(), sg_save_player_units(), total_activity(), unit_activity_astr(), unit_activity_internal(), unit_activity_targeted_internal(), unpackage_short_unit(), unpackage_unit(), and update_unit_activity().
Definition at line 239 of file unit.h.
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_worker_setup_work(), ba_human_wants(), building_advisor(), building_advisor_choose(), calculate_city_clusters(), city_map_update_radius_sq(), citymap_turn_init(), dai_build_adv_adjust(), dai_build_adv_override(), dai_unit_new_task(), find_something_to_kill(), handle_unit_change_activity_real(), military_advisor_choose_build(), sg_load_player_city(), sg_save_player_cities(), unit_virtual_create(), and unit_virtual_destroy().
void* unit::ais[FREECIV_AI_MOD_LAST] |
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().
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().
int unit::battlegroup |
Definition at line 194 of file unit.h.
Referenced by fill_unit_sprite_array(), handle_unit_packet_common(), handle_unit_sscs_set(), key_unit_assign_battlegroup(), package_unit(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), tileset_lookup_sprite_tags(), unit_change_battlegroup(), unit_register_battlegroup(), unit_virtual_create(), and unpackage_unit().
int unit::birth_turn |
Definition at line 210 of file unit.h.
Referenced by dai_is_unit_tired_waiting_boat(), package_unit(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_change_owner(), unit_virtual_create(), and unpackage_unit().
struct goods_type* unit::carrying |
Definition at line 189 of file unit.h.
Referenced by get_act_sel_action_custom_text(), package_unit(), real_menus_update(), sg_load_player_unit(), sg_save_player_units(), unit_current_goods(), unit_get_goods(), unit_virtual_create(), and unpackage_unit().
enum unit_activity unit::changed_from |
Definition at line 171 of file unit.h.
Referenced by city_change_production_penalty(), define_orig_production_values(), finalize_unit_phase_beginning(), handle_city_info(), package_city(), package_unit(), set_unit_activity(), set_unit_activity_targeted(), sg_load_player_city(), sg_load_player_city(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_cities(), sg_save_player_units(), unit_forget_last_activity(), and unpackage_unit().
int unit::changed_from_count |
Definition at line 172 of file unit.h.
Referenced by finalize_unit_phase_beginning(), package_unit(), set_unit_activity(), set_unit_activity_targeted(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), and unpackage_unit().
struct extra_type* unit::changed_from_target |
Definition at line 173 of file unit.h.
Referenced by finalize_unit_phase_beginning(), package_unit(), set_unit_activity_targeted(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), and unpackage_unit().
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().
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().
bool unit::colored |
Definition at line 225 of file unit.h.
Referenced by fill_city_overlays_sprite_array(), handle_start_phase(), toggle_city_color(), toggle_unit_color(), and unit_virtual_create().
int unit::current_form_turn |
Definition at line 211 of file unit.h.
Referenced by package_unit(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), transform_unit(), unit_change_owner(), unit_virtual_create(), and unpackage_unit().
bool unit::debug |
Definition at line 237 of file unit.h.
Referenced by auto_arrange_workers(), citizens_update(), dai_auto_settler_run(), dai_manage_cities(), dai_set_defenders(), debug_command(), and unit_virtual_create().
bool unit::done_moving |
Definition at line 184 of file unit.h.
Referenced by execute_orders(), find_best_focus_candidate(), find_nearest_unit(), handle_edit_unit(), handle_unit_orders(), handle_unit_packet_common(), objbind_get_value_from_object(), objbind_pack_current_values(), package_unit(), set_unit_activity_internal(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_focus_update(), unit_move(), unit_restore_movepoints(), unit_virtual_create(), and unpackage_unit().
bool unit::dying |
Definition at line 253 of file unit.h.
Referenced by collect_ransom(), kill_unit(), map_change_seen(), remove_city(), server_remove_unit_full(), transfer_city_units(), transfer_unit(), unit_virtual_create(), and wipe_unit_full().
enum direction8 unit::facing |
Definition at line 144 of file unit.h.
Referenced by api_edit_unit_turn(), api_methods_unit_orientation_get(), do_attack(), fill_unit_sprite_array(), handle_unit_packet_common(), move_unit_map_canvas(), package_short_unit(), package_unit(), redraw_unit_info_label(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_bombard(), unit_move(), unit_virtual_create(), units_orders_city_dlg_callback(), unpackage_short_unit(), and unpackage_unit().
enum unit_focus_status unit::focus_status |
Definition at line 217 of file unit.h.
Referenced by current_focus_append(), find_best_focus_candidate(), find_nearest_unit(), handle_player_diplstate(), key_unit_unload_all(), request_unit_move_done(), request_units_wait(), unit_focus_advance(), unit_focus_set_status(), and unit_virtual_create().
int unit::fuel |
Definition at line 155 of file unit.h.
Referenced by adv_unit_execute_path(), units_select::create_pixmap(), dai_manage_airunit(), fill_unit_sprite_array(), handle_edit_unit(), handle_unit_packet_common(), objbind_get_value_from_object(), objbind_pack_current_values(), package_unit(), pft_fill_unit_default_parameter(), player_restore_units(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_activity_astr(), unit_change_owner(), unit_virtual_create(), unpackage_unit(), and hud_units::update_actions().
Definition at line 157 of file unit.h.
Referenced by adv_follow_path(), auto_worker_setup_work(), citymap_turn_init(), dai_auto_settler_run(), dai_data_phase_begin(), dai_fill_unit_param(), dai_gothere(), dai_is_unit_tired_waiting_boat(), dai_manage_airunit(), dai_manage_caravan(), dai_manage_diplomat(), dai_military_attack(), dai_unit_new_task(), explorer_goto(), free_unit_orders(), handle_unit_change_activity_real(), handle_unit_orders(), handle_unit_packet_common(), immediate_destination(), invasion_funct(), package_unit(), player_restore_units(), popit(), popit(), fc_client::popup_tile_info(), real_unit_log(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_plans_clear(), unit_virtual_create(), and unpackage_unit().
bool unit::has_orders |
Definition at line 196 of file unit.h.
Referenced by base_transporter_for_unit(), city_create_unit(), compat_post_load_030100(), execute_orders(), free_unit_orders(), handle_unit_orders(), handle_unit_packet_common(), package_unit(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_has_orders(), unit_virtual_create(), and unpackage_unit().
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().
int unit::hp |
Definition at line 153 of file unit.h.
Referenced by actres_possible(), adv_unit_att_rating(), adv_unit_def_rating_basic(), adv_unit_execute_path(), base_assess_defense_unit(), combat_odds_to_astr(), combat_veterans(), create_present_supported_units_widget_list(), dai_choose_defender_versus(), dai_evaluate_tile_for_air_attack(), dai_find_strategic_airbase(), dai_gothere_bodyguard(), dai_manage_hitpoint_recovery(), dai_manage_paratrooper(), dai_military_attack(), dai_military_findjob(), dai_rampage_want(), do_attack(), edit_buffer_copy(), fill_unit_sprite_array(), find_best_tile_to_paradrop_to(), find_nearest_airbase(), get_defense_rating(), handle_edit_unit(), handle_unit_packet_common(), has_defense(), unit_hud_selector::hp_filter(), hud_unit_combat::hud_unit_combat(), move_unit_map_canvas(), objbind_get_value_from_object(), objbind_pack_current_values(), package_short_unit(), package_unit(), units_select::paint(), player_restore_units(), popup_advanced_terrain_dialog(), request_unit_return(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), transform_unit(), unit_att_rating_now(), unit_bombard(), unit_bombard_rate(), unit_bombs_unit(), unit_bribe_cost(), unit_change_owner(), unit_def_rating(), unit_gain_hitpoints(), unit_move_rate(), unit_restore_hitpoints(), unit_select_dialog_popup(), unit_versus_unit(), unit_virtual_create(), unit_virtual_prepare(), unit_win_chance(), unpackage_short_unit(), unpackage_unit(), and hud_units::update_actions().
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().
int unit::index |
Definition at line 198 of file unit.h.
Referenced by action_auto_perf_unit_do(), action_selection_refresh(), execute_orders(), handle_unit_orders(), handle_unit_packet_common(), city_widget::invert_selection(), mapdeco_set_gotoroute(), package_unit(), popup_action_selection(), city_widget::restore_selection(), city_widget::select_city(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), and unpackage_unit().
int unit::length |
Definition at line 198 of file unit.h.
Referenced by city_build_unit(), city_create_unit(), city_rally_point_clear(), city_rally_point_receive(), compat_post_load_030100(), execute_orders(), free_unit_orders(), handle_unit_orders(), handle_unit_packet_common(), mapdeco_set_gotoroute(), package_city(), package_unit(), sg_load_player_city(), sg_load_player_unit(), sg_load_player_unit(), sg_load_sanitycheck(), sg_load_sanitycheck(), sg_save_player_cities(), sg_save_player_units(), and unpackage_unit().
struct unit_order* unit::list |
Definition at line 201 of file unit.h.
Referenced by city_create_unit(), compat_post_load_030100(), execute_orders(), free_unit_orders(), handle_unit_orders(), handle_unit_packet_common(), mapdeco_set_gotoroute(), package_unit(), sg_load_player_unit(), sg_load_player_unit(), sg_load_sanitycheck(), sg_load_sanitycheck(), sg_save_player_units(), and unpackage_unit().
bool unit::moved |
Definition at line 176 of file unit.h.
Referenced by dai_find_strategic_airbase(), dai_manage_hitpoint_recovery(), do_attack(), handle_edit_unit(), handle_unit_packet_common(), objbind_get_value_from_object(), objbind_pack_current_values(), remove_city(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_gain_hitpoints(), unit_move(), unit_restore_hitpoints(), unit_virtual_create(), and unit_virtual_prepare().
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().
struct unit_move_data* unit::moving |
Definition at line 250 of file unit.h.
Referenced by send_unit_info(), server_remove_unit_full(), unit_goes_out_of_sight(), and unit_move_data_get().
Definition at line 146 of file unit.h.
Referenced by citizens_free(), citizens_init(), citizens_nation_add(), citizens_nation_get(), citizens_nation_set(), citizens_reduction_apply(), citizens_update(), city_create_unit(), handle_unit_packet_common(), sg_load_player_unit(), sg_load_player_unit(), unit_change_owner(), unit_nationality(), unit_virtual_create(), unpackage_short_unit(), and unpackage_unit().
bool unit::occupied |
Definition at line 222 of file unit.h.
Referenced by city_is_occupied(), client_remove_unit(), fill_sprite_array(), fill_unit_sprite_array(), handle_city_info(), handle_city_short_info(), handle_unit_packet_common(), is_plr_zoc_client(), real_menus_update(), show_full_citybar(), unpackage_short_unit(), and unpackage_unit().
int unit::ord_city |
Definition at line 245 of file unit.h.
Referenced by sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_ordering_calc(), and unit_virtual_create().
int unit::ord_map |
Definition at line 244 of file unit.h.
Referenced by compar_unit_ord_map(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_ordering_calc(), and unit_virtual_create().
struct { ... } unit::orders |
Referenced by city_create_unit(), city_rally_point_clear(), city_rally_point_receive(), compat_post_load_030100(), execute_orders(), fill_unit_sprite_array(), free_unit_orders(), handle_unit_orders(), handle_unit_packet_common(), mapdeco_set_gotoroute(), package_city(), package_unit(), sg_load_player_city(), sg_load_player_unit(), sg_load_player_unit(), sg_load_sanitycheck(), sg_load_sanitycheck(), sg_save_player_cities(), sg_save_player_units(), unpackage_unit(), and wakeup_neighbor_sentries().
Definition at line 145 of file unit.h.
Referenced by citizens_unit_nationality(), city_change_size(), city_counters_refresh(), city_populate(), city_reduce_size(), create_city_virtual(), dai_is_unit_tired_waiting_boat(), dai_upgrade_units(), disband_city(), explorer_desirable(), handle_city_info(), handle_city_short_info(), handle_unit_get_actions(), handle_worker_task(), handle_worker_task(), need_war_player_hlp(), search_homecity_for_caravan(), set_city_workertask(), map_view::shortcut_pressed(), test_player_sell_building_now(), texai_city_info_recv(), texai_unit_destruction_recv(), transfer_city(), unit_change_homecity_handling(), unit_virtual_create(), and hud_units::update_actions().
bool unit::paradropped |
Definition at line 177 of file unit.h.
Referenced by action_hard_reqs_actor(), do_paradrop(), handle_unit_packet_common(), package_unit(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_change_owner(), unit_restore_hitpoints(), unit_virtual_create(), and unpackage_unit().
int unit::refcount |
Definition at line 143 of file unit.h.
Referenced by unit_virtual_create(), and unit_virtual_destroy().
Definition at line 256 of file unit.h.
Referenced by server_remove_unit_full(), unit_set_removal_callback(), unit_unset_removal_callback(), and unit_virtual_create().
bool unit::repeat |
Definition at line 199 of file unit.h.
Referenced by execute_orders(), fill_unit_sprite_array(), handle_unit_orders(), handle_unit_packet_common(), mapdeco_set_gotoroute(), package_unit(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), and unpackage_unit().
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().
enum server_side_agent unit::ssa_controller |
Definition at line 175 of file unit.h.
Referenced by auto_workers_player(), clear_unit_orders(), do_explore(), do_move_unit(), fill_unit_sprite_array(), find_best_focus_candidate(), find_nearest_unit(), handle_unit_packet_common(), handle_unit_server_side_agent_set(), package_unit(), real_menus_update(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), unit_activity_dependencies(), unit_focus_advance(), unit_focus_update(), unit_move(), unit_server_side_agent_set(), unit_virtual_create(), unpackage_unit(), and upgrade_server_side_agent().
bool unit::stay |
Definition at line 208 of file unit.h.
Referenced by api_edit_unit_moving_allow(), api_edit_unit_moving_disallow(), handle_edit_unit(), handle_unit_packet_common(), objbind_get_value_from_object(), objbind_pack_current_values(), package_unit(), sg_load_player_unit(), sg_save_player_units(), unit_move_to_tile_test(), unit_virtual_create(), and unpackage_unit().
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().
int unit::transported_by |
Definition at line 219 of file unit.h.
Referenced by handle_unit_info(), handle_unit_packet_common(), handle_unit_remove(), handle_unit_short_info(), player_clear(), unit_virtual_create(), unpackage_short_unit(), and unpackage_unit().
Definition at line 186 of file unit.h.
Referenced by api_methods_unit_transporter(), fill_parameter_part(), unit_can_load(), unit_conquer_city(), unit_transform_result(), unit_upgrade_info(), and unit_virtual_create().
struct unit_list* unit::transporting |
Definition at line 187 of file unit.h.
Referenced by api_methods_private_unit_cargo_list_head(), can_player_see_hypotetic_units_at(), can_type_transport_units_cargo(), dai_hunter_try_launch(), unit_virtual_create(), and unit_virtual_destroy().
Definition at line 150 of file unit.h.
Referenced by city_dialog_update_supported_units(), city_distribute_surplus_shields(), city_populate(), city_support(), city_total_unit_gold_upkeep(), create_unit_surface(), dai_calc_data(), dai_unit_make_homecity(), get_economy_report_units_data(), get_units_report_data(), handle_unit_packet_common(), handle_unit_remove(), package_unit(), sg_load_player_unit(), sg_load_player_unit(), unit_item::unit_item(), unit_upkeep_astr(), unit_virtual_create(), units_report_update(), unpackage_unit(), update_city_activity(), update_national_activities(), update_unit_upkeep(), and units_reports::update_units().
Definition at line 259 of file unit.h.
Referenced by city_balance_treasury_units(), player_balance_treasury_units(), player_balance_treasury_units_and_buildings(), uk_rem_gold_callback(), unit_virtual_create(), update_city_activity(), and update_national_activities().
Definition at line 141 of file unit.h.
Referenced by action_maybe_possible_actor_unit(), can_attack_from_non_native(), can_attack_non_native(), can_attack_non_native_hard_reqs(), can_type_transport_units_cargo(), choose_build_target(), city_build_unit(), city_choose_build_default(), city_create_unit(), city_production_build_units(), city_production_buy_gold_cost(), count_my_units(), dai_spend_gold(), dai_war_desire(), disband_city(), do_attack(), find_nearest_unit(), get_units_report_data(), handle_unit_packet_common(), has_player_unit_type(), unit_hud_selector::hp_filter(), hud_unit_combat::hud_unit_combat(), is_unittype_req_active(), multiairlift(), real_city_report_dialog_update_city(), real_info_city_report_dialog_update(), really_handle_city_buy(), redraw_city_dialog(), remove_city(), research_tech_lost(), send_rally_tile(), texai_unit_info_recv(), tgt_city_local_utype(), transform_unit(), unit_hud_selector::type_filter(), unit_hud_selector::unit_hud_selector(), unit_type_get(), unit_virtual_create(), units_report_command_callback(), units_report_update(), hud_units::update_actions(), units_reports::update_units(), upgrade_unit_prod(), and unittype_item::wheelEvent().
int unit::veteran |
Definition at line 154 of file unit.h.
Referenced by adv_unit_att_rating(), base_get_defense_power(), combat_odds_to_astr(), create_present_supported_units_widget_list(), dai_choose_defender_versus(), dai_find_strategic_airbase(), dai_gothere_bodyguard(), do_attack(), edit_buffer_copy(), eval_hunter_want(), fill_unit_sprite_array(), get_activity_rate(), get_attack_power(), get_virtual_defense_power(), handle_edit_unit(), handle_unit_packet_common(), maybe_become_veteran_real(), move_unit_map_canvas(), notify_unit_experience(), objbind_get_value_from_object(), objbind_pack_current_values(), package_short_unit(), package_unit(), popup_advanced_terrain_dialog(), redraw_unit_info_label(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_units(), transform_unit(), unit_att_rating_now(), unit_bribe_cost(), unit_change_owner(), unit_description(), unit_move_rate(), unit_select_dialog_popup(), unit_veteran_level_string(), unit_virtual_create(), unpackage_short_unit(), and ur_transform_unit().
bool unit::vigilant |
Definition at line 200 of file unit.h.
Referenced by city_create_unit(), city_rally_point_clear(), city_rally_point_receive(), execute_orders(), handle_unit_orders(), handle_unit_packet_common(), package_city(), package_unit(), sg_load_player_city(), sg_load_player_unit(), sg_load_player_unit(), sg_save_player_cities(), sg_save_player_units(), unpackage_unit(), and wakeup_neighbor_sentries().
Definition at line 247 of file unit.h.
Referenced by city_refresh_vision(), create_city(), place_unit(), remove_city(), server_game_free(), server_remove_unit_full(), sg_load_player_cities(), sg_load_player_cities(), sg_load_player_units(), sg_load_player_units(), transfer_city(), unit_change_homecity_handling(), unit_move_by_data(), unit_move_data_get(), unit_refresh_vision(), and unit_virtual_create().