The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Variables
function_table.cpp File Reference
#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 "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 "pathfind/pathfind.hpp"
Include dependency graph for function_table.cpp:

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 DECLARE_FAI_FUNCTION(name)
 

Variables

static lg::log_domain log_formula_ai ("ai/engine/fai")
 

Macro Definition Documentation

#define DECLARE_FAI_FUNCTION (   name)
Value:
add_function(#name, formula_function_ptr( \
new ai_formula_function<name##_function>(#name, ai)))
std::shared_ptr< formula_function > formula_function_ptr
Definition: function.hpp:138
A small explanation about what's going on here: Each action has access to two game_info objects First...
Definition: actions.cpp:58
static const char * name(const std::vector< SDL_Joystick * > &joysticks, const size_t index)
Definition: joystick.cpp:48

Definition at line 1356 of file function_table.cpp.

Referenced by wfl::ai_function_symbol_table::ai_function_symbol_table().

#define ERR_AI   LOG_STREAM(err, log_formula_ai)

Definition at line 46 of file function_table.cpp.

#define LOG_AI   LOG_STREAM(info, log_formula_ai)

Definition at line 44 of file function_table.cpp.

#define WRN_AI   LOG_STREAM(warn, log_formula_ai)

Definition at line 45 of file function_table.cpp.

Variable Documentation

formula_ai& ai_

Definition at line 123 of file function_table.cpp.

int h

Definition at line 138 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 154 of file function_table.cpp.

Referenced by decode(), encode(), preprocessor_data::get_chunk(), campaignd::server::load_blacklist(), campaignd::server::load_config(), and gui2::dialogs::log_settings::log_settings().

lg::log_domain log_formula_ai("ai/engine/fai")
static
int movement_cost_

Definition at line 146 of file function_table.cpp.

const std::vector<node>& nodes

Definition at line 176 of file function_table.cpp.

Referenced by pathfind::a_star_search().

const unit* unit_

Definition at line 95 of file function_table.cpp.

const unit_type* unit_type_

Definition at line 94 of file function_table.cpp.

int w

Definition at line 138 of file function_table.cpp.

Referenced by display_chat_manager::add_chat_message(), gui::textbox::add_text_line(), gui2::dialogs::generator_settings::adjust_minimum_size_by_players(), t_string_base::base_str(), blit_surface(), gui2::implementation::builder_drawing::build(), gui2::event::implementation::build_event_chain< signal_message_function >(), gui2::event::implementation::build_event_chain< signal_notification_function >(), wb::move::calculate_new_route(), gui::button::calculate_size(), font::pango_text::calculate_size(), image::scale_exact_modification::calculate_size(), image::scale_into_modification::calculate_size(), convergeephemerons(), count_leading_zeros_impl(), sdl::create_rect(), wb::manager::create_temp_move(), font::cut_word(), events::menu_handler::do_search(), gui2::rectangle_shape::draw(), gui2::round_rectangle_shape::draw(), gui2::image_shape::draw(), gui2::text_shape::draw(), unit_drawer::draw_bar(), gui::menu::draw_row(), events::menu_handler::execute_gotos(), gui2::scrollbar_container::find_at(), find_widget(), 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(), t_translation::get_map_size(), unit_frame::get_overlaped_hex(), gui2::get_parent(), wfl::gamemap_callable::get_value(), image::pixel_callable::get_value(), editor::location_palette::hide(), editor::editor_palette< overlay >::hide(), gui2::dialogs::sub_player_list::init(), gui2::dialogs::player_list::init(), CVideo::init_window(), lua_gui2::intf_get_dialog_value(), lua_gui2::intf_remove_dialog_item(), lua_gui2::intf_set_dialog_active(), lua_gui2::intf_set_dialog_callback(), lua_gui2::intf_set_dialog_canvas(), lua_gui2::intf_set_dialog_markup(), lua_gui2::intf_set_dialog_value(), lua_gui2::intf_set_dialog_visible(), gui2::event::distributor::keyboard_remove_from_chain(), gui::dialog_frame::layout(), gui::button::load_images(), gui::menu::imgsel_style::load_images(), ai_testing::log_victory(), luaU_dump(), font::text_surface::measure(), editor::context_manager::new_map_dialog(), editor::context_manager::new_scenario_dialog(), utils::operator<<(), gui2::implementation::parse_list_data(), gui2::grid::place(), gui2::dialogs::preferences_dialog::post_build(), gui2::dialogs::mp_lobby::post_build(), gui2::dialogs::mp_create_game::pre_show(), gui2::dialogs::title_screen::pre_show(), gui2::gui_definition::read(), gui2::dialogs::register_button(), terrain_builder::reload_map(), editor::context_manager::resize_map_dialog(), scale_surface(), scale_surface_legacy(), scale_surface_nn(), scale_surface_sharp(), screen_area(), gui2::listbox::set_active_sorting_option(), gui2::window::set_exit_hook_ok_only(), help::help_text_area::set_items(), gui::widget::set_measurements(), gui2::group< SCALING_ALGORITHM >::set_members_enabled(), gui2::listbox::set_row_shown(), 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(), lua_gui2::show_dialog(), gui2::dialogs::variable_mode_controller::show_var(), gui2::event::distributor::signal_handler_notify_removal(), t_string_base::str(), stretch_surface_horizontal(), play_controller::tab(), tile_surface(), t_string_base::to_serialized(), gui2::dialogs::unit_create::update_displayed_type(), gui::scrollarea::update_location(), gui::menu::update_size(), and gui::textbox::update_text_cache().