The Battle for Wesnoth  1.13.4+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 "attack_prediction.hpp"
#include "filesystem.hpp"
#include "game_board.hpp"
#include "display.hpp"
#include "log.hpp"
#include "map/label.hpp"
#include "pathfind/teleport.hpp"
#include "replay.hpp"
#include "resources.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

 game_logic
 

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 AI_FUNCTION(name)
 
#define FUNCTION(name)
 

Variables

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

Macro Definition Documentation

#define AI_FUNCTION (   name)
Value:
add_function(#name, formula_function_ptr( \
new ai_formula_function<name##_function>(#name, ai)))
A small explanation about what's going on here: Each action has access to two game_info objects First...
Definition: actions.cpp:57
GLuint const GLchar * name
Definition: glew.h:1782
boost::shared_ptr< formula_function > formula_function_ptr
Definition: function.hpp:133

Definition at line 1650 of file function_table.cpp.

Referenced by game_logic::ai_function_symbol_table::ai_function_symbol_table().

#define ERR_AI   LOG_STREAM(err, log_formula_ai)

Definition at line 43 of file function_table.cpp.

#define FUNCTION (   name)
Value:
add_function(#name, formula_function_ptr( \
new builtin_formula_function<name##_function>(#name)))
GLuint const GLchar * name
Definition: glew.h:1782
boost::shared_ptr< formula_function > formula_function_ptr
Definition: function.hpp:133

Definition at line 1652 of file function_table.cpp.

Referenced by game_logic::ai_function_symbol_table::ai_function_symbol_table().

#define LOG_AI   LOG_STREAM(info, log_formula_ai)

Definition at line 41 of file function_table.cpp.

#define WRN_AI   LOG_STREAM(warn, log_formula_ai)

Definition at line 42 of file function_table.cpp.

Variable Documentation

formula_ai& ai_

Definition at line 122 of file function_table.cpp.

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.

lg::log_domain log_formula_ai("ai/engine/fai")
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().

const unit* unit_

Definition at line 94 of file function_table.cpp.

const unit_type* unit_type_

Definition at line 93 of file function_table.cpp.

int w

Definition at line 137 of file function_table.cpp.