Freeciv-3.2
|
#include "ai.h"
#include "player.h"
#include "advdata.h"
#include "autosettlers.h"
#include "aiferry.h"
#include "aihand.h"
#include "aitools.h"
#include "daicity.h"
#include "daidata.h"
#include "daidiplomacy.h"
#include "daidomestic.h"
#include "dailog.h"
#include "daimilitary.h"
#include "daiplayer.h"
#include "daisettler.h"
#include "classicai.h"
Go to the source code of this file.
Variables | |
static struct ai_type * | self = NULL |
|
static |
Call default ai with classic ai type as parameter.
Definition at line 422 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 400 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 410 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 255 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 245 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 225 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 183 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 193 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 214 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 532 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 203 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 552 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 563 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 574 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 152 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 163 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 173 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 465 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 507 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 445 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 475 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 316 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 336 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 326 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 131 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 265 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 518 of file classicai.c.
Referenced by fc_ai_classic_setup().
Free resources allocated by the classic AI module
Definition at line 74 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 84 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 94 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 118 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter. Classicai stores information to "ai" like the default ai common code.
Definition at line 105 of file classicai.c.
Referenced by fc_ai_classic_setup().
Mark turn done as we have already done everything before game was saved.
Definition at line 457 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 584 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 141 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 434 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 496 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 485 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 306 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 296 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 389 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 542 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 356 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 367 of file classicai.c.
Referenced by fc_ai_classic_setup().
|
static |
Call default ai with classic ai type as parameter.
Definition at line 378 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 346 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 286 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 276 of file classicai.c.
Referenced by fc_ai_classic_setup().
Call default ai with classic ai type as parameter.
Definition at line 235 of file classicai.c.
Referenced by fc_ai_classic_setup().
Get pointer to ai type of the classic ai.
Definition at line 58 of file classicai.c.
Referenced by cai_auto_settler_cont(), cai_auto_settler_reset(), cai_auto_settler_run(), cai_build_adv_adjust(), cai_build_adv_init(), cai_build_adv_override(), cai_city_alloc(), cai_city_free(), cai_city_load(), cai_city_log(), cai_city_save(), cai_consider_plr_dangerous(), cai_consider_tile_dangerous(), cai_consider_wonder_city(), cai_created_by_civil_war(), cai_data_phase_begin(), cai_data_phase_finished(), cai_diplomacy_actions(), cai_diplomacy_first_contact(), cai_do_first_activities(), cai_do_last_activities(), cai_ferry_init_ferry(), cai_ferry_lost(), cai_ferry_transformed(), cai_gained_control(), cai_gov_value(), cai_incident(), cai_module_close(), cai_player_alloc(), cai_player_free(), cai_player_load_relations(), cai_player_save_relations(), cai_revolution_start(), cai_split_by_civil_war(), cai_switch_to_explore(), cai_treaty_accepted(), cai_treaty_evaluate(), cai_unit_close(), cai_unit_init(), cai_unit_load(), cai_unit_log(), cai_unit_move_or_attack(), cai_unit_new_adv_task(), cai_unit_save(), cai_unit_turn_end(), cai_units_ruleset_close(), cai_units_ruleset_init(), and cai_wonder_city_distance().
Set pointer to ai type of the classic ai.
Definition at line 50 of file classicai.c.
Referenced by fc_ai_classic_setup().
Return module capability string
Definition at line 66 of file classicai.c.
Setup player ai_funcs function pointers.
Definition at line 594 of file classicai.c.
Referenced by ai_init().
Definition at line 45 of file classicai.c.
Referenced by api_edit_unit_hitpoints(), api_edit_unit_movepoints(), api_methods_city_inspire_partisans(), api_methods_tile_known(), api_methods_tile_seen(), api_methods_unit_seen(), audio_none_init(), audio_sdl_init(), classic_ai_get_self(), classic_ai_set_self(), close_connections_and_socket(), cma_init(), cmafec_init(), info_popup_closed(), none_audio_init(), none_audio_shutdown(), sdl_audio_init(), sdl_audio_shutdown(), simple_historian_init(), tolua_game_Achievement_name_translation00(), tolua_game_Achievement_rule_name00(), tolua_game_Action_name_translation00(), tolua_game_Action_rule_name00(), tolua_game_Action_target_kind00(), tolua_game_Building_Type_is_great_wonder00(), tolua_game_Building_Type_is_improvement00(), tolua_game_Building_Type_is_small_wonder00(), tolua_game_Building_Type_is_wonder00(), tolua_game_Building_Type_name_translation00(), tolua_game_Building_Type_rule_name00(), tolua_game_City_culture00(), tolua_game_City_has_building00(), tolua_game_City_inspire_partisans00(), tolua_game_City_is_capital00(), tolua_game_City_is_celebrating00(), tolua_game_City_is_gov_center00(), tolua_game_City_is_happy00(), tolua_game_City_is_primary_capital00(), tolua_game_City_is_unhappy00(), tolua_game_City_link_text00(), tolua_game_City_List_Link_data00(), tolua_game_City_List_Link_next00(), tolua_game_City_map_sq_radius00(), tolua_game_City_properties_size00(), tolua_game_City_properties_tile00(), tolua_game_City_tile_link_text00(), tolua_game_direction_next_ccw00(), tolua_game_direction_next_cw00(), tolua_game_direction_opposite00(), tolua_game_Direction_properties_cardinal00(), tolua_game_Disaster_name_translation00(), tolua_game_Disaster_rule_name00(), tolua_game_Government_name_translation00(), tolua_game_Government_rule_name00(), tolua_game_methods_private_Player_city_list_head00(), tolua_game_methods_private_Player_unit_list_head00(), tolua_game_methods_private_Tile_unit_list_head00(), tolua_game_methods_private_Unit_cargo_list_head00(), tolua_game_Nation_Type_name_translation00(), tolua_game_Nation_Type_plural_translation00(), tolua_game_Nation_Type_rule_name00(), tolua_game_Player_controlling_gui00(), tolua_game_Player_culture00(), tolua_game_Player_gold00(), tolua_game_Player_has_flag00(), tolua_game_Player_has_wonder00(), tolua_game_Player_infrapoints00(), tolua_game_Player_knows_tech00(), tolua_game_Player_num_cities00(), tolua_game_Player_num_units00(), tolua_game_Player_properties_id00(), tolua_game_Player_research_name_translation00(), tolua_game_Player_research_rule_name00(), tolua_game_Player_shares_research00(), tolua_game_Tech_Type_name_translation00(), tolua_game_Tech_Type_rule_name00(), tolua_game_Terrain_class_name00(), tolua_game_Terrain_name_translation00(), tolua_game_Terrain_rule_name00(), tolua_game_Tile_city00(), tolua_game_Tile_city_exists_within_max_city_map00(), tolua_game_Tile_extra_owner00(), tolua_game_Tile_has_base00(), tolua_game_Tile_has_extra00(), tolua_game_Tile_has_road00(), tolua_game_Tile_is_enemy00(), tolua_game_Tile_known00(), tolua_game_Tile_link_text00(), tolua_game_Tile_num_units00(), tolua_game_Tile_properties_nat_x00(), tolua_game_Tile_properties_nat_y00(), tolua_game_Tile_properties_x00(), tolua_game_Tile_properties_y00(), tolua_game_Tile_seen00(), tolua_game_Tile_sq_distance00(), tolua_game_Unit_facing00(), tolua_game_Unit_is_on_possible_city_tile00(), tolua_game_Unit_link_text00(), tolua_game_Unit_List_Link_data00(), tolua_game_Unit_List_Link_next00(), tolua_game_Unit_properties_tile00(), tolua_game_Unit_seen00(), tolua_game_Unit_tile_link_text00(), tolua_game_Unit_transporter00(), tolua_game_Unit_Type_can_exist_at_tile00(), tolua_game_Unit_Type_has_flag00(), tolua_game_Unit_Type_has_role00(), tolua_game_Unit_Type_name_translation00(), tolua_game_Unit_Type_rule_name00(), tolua_get_Achievement_Achievement_id(), tolua_get_Action_Action_id(), tolua_get_Building_Type_Building_Type_build_cost(), tolua_get_Building_Type_Building_Type_item_number(), tolua_get_City_City_id(), tolua_get_City_City_name(), tolua_get_City_City_original_ptr(), tolua_get_City_City_owner_ptr(), tolua_get_Connection_Connection_id(), tolua_get_Disaster_Disaster_id(), tolua_get_Game_Info_Game_Info_base_tech_cost(), tolua_get_Game_Info_Game_Info_min_tech_cost(), tolua_get_Game_Info_Game_Info_sciencebox(), tolua_get_Game_Info_Game_Info_tech_leak_pct(), tolua_get_Game_Info_Game_Info_tech_loss_allow_holes(), tolua_get_Game_Info_Game_Info_tech_parasite_allow_holes(), tolua_get_Game_Info_Game_Info_tech_steal_allow_holes(), tolua_get_Game_Info_Game_Info_tech_trade_allow_holes(), tolua_get_Game_Info_Game_Info_tech_trade_loss_allow_holes(), tolua_get_Government_Government_item_number(), tolua_get_Nation_Type_Nation_Type_item_number(), tolua_get_Player_Player_government_ptr(), tolua_get_Player_Player_is_alive(), tolua_get_Player_Player_name(), tolua_get_Player_Player_nation_ptr(), tolua_get_Tech_Type_Tech_Type_cost(), tolua_get_Tech_Type_Tech_Type_item_number(), tolua_get_Terrain_Terrain_item_number(), tolua_get_Tile_Tile_index(), tolua_get_Tile_Tile_owner_ptr(), tolua_get_Tile_Tile_terrain_ptr(), tolua_get_Unit_Type_Unit_Type_build_cost(), tolua_get_Unit_Type_Unit_Type_item_number(), tolua_get_Unit_Type_Unit_Type_obsoleted_by_ptr(), tolua_get_Unit_Unit_homecity(), tolua_get_Unit_Unit_id(), tolua_get_Unit_Unit_owner_ptr(), tolua_get_Unit_Unit_utype_ptr(), tolua_get_Unit_Unit_veteran(), tolua_server_edit_add_city_history00(), tolua_server_edit_add_player_history00(), tolua_server_edit_give_bulbs00(), tolua_server_edit_movement_allow00(), tolua_server_edit_movement_disallow00(), tolua_server_edit_player_victory00(), tolua_server_edit_unit_add_hitpoints00(), tolua_server_edit_unit_add_movepoints00(), tolua_server_edit_unit_kill00(), tolua_server_edit_unit_move00(), tolua_server_edit_unit_teleport00(), tolua_set_Building_Type_Building_Type_build_cost(), tolua_set_City_City_original_ptr(), tolua_set_City_City_owner_ptr(), tolua_set_Player_Player_government_ptr(), tolua_set_Player_Player_is_alive(), tolua_set_Player_Player_nation_ptr(), tolua_set_Tile_Tile_owner_ptr(), tolua_set_Tile_Tile_terrain_ptr(), tolua_set_Unit_Type_Unit_Type_build_cost(), tolua_set_Unit_Type_Unit_Type_obsoleted_by_ptr(), tolua_set_Unit_Unit_homecity(), tolua_set_Unit_Unit_owner_ptr(), tolua_set_Unit_Unit_utype_ptr(), and tolua_set_Unit_Unit_veteran().