#include <formula_manager.hpp>
Public Member Functions | |
unit_formula_manager () | |
unit_formula_manager (const unit_formula_manager &o) | |
const game_logic::map_formula_callable_ptr & | formula_vars () const |
void | add_formula_var (std::string str, variant var) |
bool | has_formula () const |
bool | has_loop_formula () const |
bool | has_priority_formula () const |
const std::string & | get_formula () const |
const std::string & | get_loop_formula () const |
const std::string & | get_priority_formula () const |
void | read (const config &ai) |
void | write (config &cfg) |
Private Attributes | |
std::string | unit_formula_ |
std::string | unit_loop_formula_ |
std::string | unit_priority_formula_ |
game_logic::map_formula_callable_ptr | formula_vars_ |
Definition at line 27 of file formula_manager.hpp.
|
inline |
Definition at line 29 of file formula_manager.hpp.
|
inline |
Definition at line 30 of file formula_manager.hpp.
void unit_formula_manager::add_formula_var | ( | std::string | str, |
variant | var | ||
) |
Definition at line 24 of file formula_manager.cpp.
References formula_vars_.
|
inline |
Definition at line 37 of file formula_manager.hpp.
References formula_vars_.
Referenced by unit_callable::get_value().
|
inline |
Definition at line 42 of file formula_manager.hpp.
References unit_formula_.
|
inline |
Definition at line 43 of file formula_manager.hpp.
References unit_loop_formula_.
|
inline |
Definition at line 44 of file formula_manager.hpp.
References unit_priority_formula_.
|
inline |
|
inline |
Definition at line 40 of file formula_manager.hpp.
References unit_loop_formula_.
Referenced by write().
|
inline |
Definition at line 41 of file formula_manager.hpp.
References unit_priority_formula_.
Referenced by write().
Definition at line 30 of file formula_manager.cpp.
References config::child(), formula_vars_, i, variant::serialize_from_string(), unit_formula_, unit_loop_formula_, and unit_priority_formula_.
Definition at line 50 of file formula_manager.cpp.
References config::add_child(), config::clear(), formula_vars_, has_formula(), has_loop_formula(), has_priority_formula(), i, unit_formula_, unit_loop_formula_, and unit_priority_formula_.
|
private |
Definition at line 53 of file formula_manager.hpp.
Referenced by add_formula_var(), formula_vars(), read(), and write().
|
private |
Definition at line 50 of file formula_manager.hpp.
Referenced by get_formula(), has_formula(), read(), and write().
|
private |
Definition at line 51 of file formula_manager.hpp.
Referenced by get_loop_formula(), has_loop_formula(), read(), and write().
|
private |
Definition at line 52 of file formula_manager.hpp.
Referenced by get_priority_formula(), has_priority_formula(), read(), and write().