#include <function.hpp>
Public Member Functions | |
formula_function_expression (const std::string &name, const args_list &args, const_formula_ptr formula, const_formula_ptr precondition, const std::vector< std::string > &arg_names) | |
![]() | |
function_expression (const std::string &name, const args_list &args, int min_args=-1, int max_args=-1) | |
virtual std::string | str () const |
![]() | |
formula_expression () | |
virtual | ~formula_expression () |
variant | evaluate (const formula_callable &variables, formula_debugger *fdb=nullptr) const |
void | set_name (const char *name) |
const char * | get_name () const |
Private Member Functions | |
variant | execute (const formula_callable &variables, formula_debugger *fdb) const |
Private Attributes | |
const_formula_ptr | formula_ |
const_formula_ptr | precondition_ |
std::vector< std::string > | arg_names_ |
int | star_arg_ |
Additional Inherited Members | |
![]() | |
typedef std::vector < expression_ptr > | args_list |
![]() | |
const args_list & | args () const |
Definition at line 87 of file function.hpp.
|
explicit |
Definition at line 1481 of file function.cpp.
References arg_names_, and star_arg_.
|
privatevirtual |
Implements game_logic::formula_expression.
Definition at line 1494 of file function.cpp.
References game_logic::map_formula_callable::add(), arg_names_, game_logic::function_expression::args(), variant::as_callable(), DBG_NG, formula_, indent, precondition_, game_logic::map_formula_callable::set_fallback(), and star_arg_.
|
private |
Definition at line 94 of file function.hpp.
Referenced by execute(), and formula_function_expression().
|
private |
Definition at line 92 of file function.hpp.
Referenced by execute().
|
private |
Definition at line 93 of file function.hpp.
Referenced by execute().
|
private |
Definition at line 95 of file function.hpp.
Referenced by execute(), and formula_function_expression().