#include <queue>
#include <set>
#include <utility>
#include <vector>
#include "ai/formula/ai.hpp"
#include "ai/formula/callable_objects.hpp"
#include "ai/formula/function_table.hpp"
#include "ai/default/contexts.hpp"
#include "formula/function_gamestate.hpp"
#include "attack_prediction.hpp"
#include "filesystem.hpp"
#include "game_board.hpp"
#include "global.hpp"
#include "display.hpp"
#include "log.hpp"
#include "map/label.hpp"
#include "map/map.hpp"
#include "pathfind/teleport.hpp"
#include "replay.hpp"
#include "resources.hpp"
#include "color.hpp"
#include "terrain/filter.hpp"
#include "units/unit.hpp"
#include "units/types.hpp"
#include "pathfind/pathfind.hpp"
Go to the source code of this file.
Namespaces | |
wfl | |
Macros | |
#define | LOG_AI LOG_STREAM(info, log_formula_ai) |
#define | WRN_AI LOG_STREAM(warn, log_formula_ai) |
#define | ERR_AI LOG_STREAM(err, log_formula_ai) |
#define | DEFINE_FAI_FUNCTION(name, min_args, max_args) |
#define | DECLARE_FAI_FUNCTION(name) add_function(#name, std::make_shared<ai_formula_function<name##_function>>(#name, ai)) |
Variables | |
static lg::log_domain | log_formula_ai ("ai/engine/fai") |
#define DECLARE_FAI_FUNCTION | ( | name | ) | add_function(#name, std::make_shared<ai_formula_function<name##_function>>(#name, ai)) |
Definition at line 1089 of file function_table.cpp.
Referenced by wfl::ai_function_symbol_table::ai_function_symbol_table().
#define DEFINE_FAI_FUNCTION | ( | name, | |
min_args, | |||
max_args | |||
) |
Definition at line 99 of file function_table.cpp.
#define ERR_AI LOG_STREAM(err, log_formula_ai) |
Definition at line 48 of file function_table.cpp.
#define LOG_AI LOG_STREAM(info, log_formula_ai) |
Definition at line 46 of file function_table.cpp.
#define WRN_AI LOG_STREAM(warn, log_formula_ai) |
Definition at line 47 of file function_table.cpp.
|
protected |
Definition at line 1077 of file function_table.cpp.
Referenced by wfl::attack_map_callable::collect_possible_attacks(), and wfl::attack_map_callable::get_value().
int h |
Definition at line 137 of file function_table.cpp.
unsigned in |
If equal to search_counter, the node is off the list.
If equal to search_counter + 1, the node is on the list. Otherwise it is outdated.
Definition at line 153 of file function_table.cpp.
Referenced by decode(), encode(), preprocessor_data::get_chunk(), campaignd::server::handle_request_campaign(), campaignd::server::handle_upload(), campaignd::server::load_blacklist(), campaignd::server::load_config(), and gui2::dialogs::log_settings::log_settings().
map_location loc_ |
Definition at line 146 of file function_table.cpp.
Referenced by scoped_xy_unit::activate(), battle_context::choose_defender_weapon(), wfl::recall_callable::execute_self(), wfl::recruit_callable::execute_self(), wfl::set_unit_var_callable::execute_self(), unit::get_abilities(), unit::get_abilities_weapons(), unit::get_ability_bool(), theme::object::get_location(), wfl::unit_callable::get_location(), unit::get_location(), wfl::recall_callable::get_value(), wfl::recruit_callable::get_value(), wfl::set_unit_var_callable::get_value(), wfl::location_callable::loc(), unit_ability_list::loc(), wfl::recall_callable::loc(), wfl::recruit_callable::loc(), wfl::set_unit_var_callable::loc(), theme::object::location(), terrain_label::location(), theme::object::modify_location(), display::rect_of_hexes::iterator::operator!=(), display::rect_of_hexes::iterator::operator*(), display::rect_of_hexes::iterator::operator++(), display::rect_of_hexes::iterator::operator==(), editor::editor_action_village::perform(), editor::editor_action_unit::perform(), editor::editor_action_item::perform(), editor::editor_action_label::perform(), editor::editor_action_fill::perform(), editor::editor_action_starting_position::perform(), editor::editor_action_fill::perform_without_undo(), editor::editor_action_starting_position::perform_without_undo(), and unit::set_location().
|
static |
int movement_cost_ |
Definition at line 145 of file function_table.cpp.
const std::vector<node>& nodes |
Definition at line 175 of file function_table.cpp.
Referenced by pathfind::a_star_search(), and gui2::tree_view_node::replace_children().
|
private |
Definition at line 96 of file function_table.cpp.
|
private |
Definition at line 95 of file function_table.cpp.
int w |
Definition at line 137 of file function_table.cpp.
Referenced by gui2::gui_definition::activate(), display_chat_manager::add_chat_message(), gui::textbox::add_text_line(), gui::menu::style::adjust_image_bounds(), gui2::dialogs::generator_settings::adjust_minimum_size_by_players(), display::announce(), rect::area(), t_string_base::base_str(), gui2::implementation::builder_drawing::build(), gui2::event::implementation::build_event_chain< event_category::message >(), gui2::event::implementation::build_event_chain< event_category::notification >(), wb::move::calculate_new_route(), font::pango_text::calculate_size(), image::scale_exact_modification::calculate_size(), image::scale_into_modification::calculate_size(), gui2::dialogs::mp_join_game::close_faction_select_dialog_if_open(), rect::contains(), wb::manager::create_temp_move(), gui2::rectangle_shape::draw(), gui2::round_rectangle_shape::draw(), gui2::image_shape::draw(), gui2::text_shape::draw(), game_display::draw_hex(), game_display::draw_movement_info(), gui::menu::draw_row(), events::menu_handler::execute_gotos(), gui2::scrollbar_container::find_at(), find_widget_impl(), gui2::event::implementation::fire_event(), gui2::event::fire_event(), gui2::event::fire_event_double_click(), spirit_po::catalog< hashmap_type, pf_compiler >::from_istream(), spirit_po::catalog< hashmap_type, pf_compiler >::from_iterators(), spirit_po::catalog< hashmap_type, pf_compiler >::from_range(), t_string_base::from_serialized(), gui2::listbox::get_active_sorting_option(), ai::formula_ai::get_keeps(), terrain_filter::get_locs_impl(), sdl::window::get_logical_size(), t_translation::get_map_size(), unit_frame::get_overlaped_hex(), gui2::get_parent(), wfl::gamemap_callable::get_value(), image::pixel_callable::get_value(), gui2::gui_definition::gui_definition(), editor::location_palette::hide(), editor::editor_palette< overlay >::hide(), impl_widget_collect(), lua_widget::impl_widget_dir(), lua_widget::impl_widget_get(), lua_widget::impl_widget_set(), gui2::lobby_player_list_helper::init(), gui::menu::style::init(), video::init_window(), gui2::dialogs::preferences_dialog::initialize_callbacks(), intf_add_dialog_item(), intf_add_item_of_type(), intf_dialog_close(), intf_find_widget(), intf_remove_dialog_item(), intf_set_dialog_callback(), intf_set_dialog_canvas(), intf_set_dialog_focus(), gui::menu::style::item_size(), gui2::event::distributor::keyboard_remove_from_chain(), gui::dialog_frame::layout(), gui::menu::imgsel_style::load_images(), ai_testing::log_victory(), display::minimap_location_on(), editor::context_manager::new_map_dialog(), editor::context_manager::new_scenario_dialog(), rect::operator*(), rect::operator*=(), rect::operator/(), rect::operator/=(), gui2::implementation::parse_list_data(), gui2::grid::place(), gui2::dialogs::mp_create_game::pre_show(), rect::rect(), register_widget_attribute(), terrain_builder::reload_map(), game_display::render(), editor::context_manager::resize_map_dialog(), scale_surface(), scale_surface_legacy(), scale_surface_nn(), scale_surface_sharp(), display::scroll_to_tiles(), sdl_blit(), gui2::listbox::set_active_sorting_option(), gui2::group< team_shared_vision::type >::set_callback_on_value_change(), gui2::grid::set_child(), gui2::grid::set_column_grow_factor(), gui2::window::set_exit_hook(), help::help_text_area::set_items(), gui::widget::set_measurements(), gui2::group< team_shared_vision::type >::set_members_enabled(), gui2::listbox::set_row_shown(), display::set_team(), spirit_po::catalog< hashmap_type, pf_compiler >::set_warning_channel(), gui::widget::set_width(), font::floating_label::set_width(), ai::formula_ai::shortest_path_calculator(), gui2::dialogs::team_mode_controller::show_ai_components(), gui2::dialogs::variable_mode_controller::show_array(), gui2::dialogs::unit_mode_controller::show_array(), gui2::dialogs::team_mode_controller::show_array(), gui2::dialogs::variable_mode_controller::show_var(), gui2::dialogs::unit_mode_controller::show_var(), gui2::dialogs::team_mode_controller::show_var(), gui2::event::distributor::signal_handler_notify_removal(), rect::size(), t_string_base::str(), surface::surface(), gui2::grid::swap_child(), play_controller::tab(), draw::tiled_highres(), t_string_base::to_serialized(), halo::halo_impl::effect::update(), game_display::update(), video::update_framebuffer(), gui::scrollarea::update_location(), gui::menu::update_size(), video::update_test_framebuffer(), gui::textbox::update_text_cache(), WIDGET_GETTER(), WIDGET_SETTER(), and gui2::dialogs::mp_lobby::~mp_lobby().