#include "formula/callable.hpp"
#include "map/map.hpp"
#include "team.hpp"
#include "units/unit.hpp"
Go to the source code of this file.
Classes | |
class | terrain_callable |
class | location_callable |
class | attack_type_callable |
class | unit_callable |
class | unit_type_callable |
class | config_callable |
Macros | |
#define | CALLABLE_WRAPPER_START(klass) |
#define | CALLABLE_WRAPPER_INPUT(VAR) inputs->push_back(game_logic::formula_input(#VAR, FORMULA_READ_ONLY)); |
#define | CALLABLE_WRAPPER_INPUT_END |
#define | CALLABLE_WRAPPER_VAR(VAR) |
#define | CALLABLE_WRAPPER_FN2(VAR, FN) |
#define | CALLABLE_WRAPPER_FN(VAR) CALLABLE_WRAPPER_FN2(VAR, VAR) |
#define | CALLABLE_WRAPPER_END |
Functions | |
template<typename T , typename K > | |
variant | convert_map (const std::map< T, K > &map) |
template<typename T > | |
variant | convert_vector (const std::vector< T > &input_vector) |
CALLABLE_WRAPPER_INPUT_END | if (key=="terrain") |
#define CALLABLE_WRAPPER_END |
Definition at line 56 of file callable_objects.hpp.
#define CALLABLE_WRAPPER_FN | ( | VAR | ) | CALLABLE_WRAPPER_FN2(VAR, VAR) |
Definition at line 54 of file callable_objects.hpp.
#define CALLABLE_WRAPPER_FN2 | ( | VAR, | |
FN | |||
) |
Definition at line 49 of file callable_objects.hpp.
#define CALLABLE_WRAPPER_INPUT | ( | VAR | ) | inputs->push_back(game_logic::formula_input(#VAR, FORMULA_READ_ONLY)); |
Definition at line 36 of file callable_objects.hpp.
#define CALLABLE_WRAPPER_INPUT_END |
Definition at line 39 of file callable_objects.hpp.
#define CALLABLE_WRAPPER_START | ( | klass | ) |
Definition at line 24 of file callable_objects.hpp.
#define CALLABLE_WRAPPER_VAR | ( | VAR | ) |
Definition at line 44 of file callable_objects.hpp.
variant convert_map | ( | const std::map< T, K > & | map | ) |
Definition at line 22 of file callable_objects.cpp.
References i.
Referenced by unit_callable::get_value().
variant convert_vector | ( | const std::vector< T > & | input_vector | ) |
Definition at line 34 of file callable_objects.cpp.
References i.
else if | ( | key | = = "terrain" | ) |
Definition at line 89 of file callable_objects.hpp.
Referenced by pathfind::a_star_search(), ai::attack_analysis::analyze(), auxgetinfo(), findlocal(), game_launcher::game_launcher(), and lua_newstate().