#include <callable.hpp>
Public Member Functions | |
formula_callable_with_backup (const formula_callable &main, const formula_callable &backup) | |
![]() | |
formula_callable (bool has_self=true) | |
variant | query_value (const std::string &key) const |
void | mutate_value (const std::string &key, const variant &value) |
std::vector< formula_input > | inputs () const |
bool | equals (const formula_callable *other) const |
bool | less (const formula_callable *other) const |
void | serialize (std::string &str) const |
bool | has_key (const std::string &key) const |
![]() | |
reference_counted_object () | |
reference_counted_object (const reference_counted_object &) | |
reference_counted_object & | operator= (const reference_counted_object &) |
virtual | ~reference_counted_object () |
void | add_ref () const |
void | dec_ref () const |
int | refcount () const |
Private Member Functions | |
variant | get_value (const std::string &key) const |
void | get_inputs (std::vector< formula_input > *inputs) const |
Private Attributes | |
const formula_callable & | main_ |
const formula_callable & | backup_ |
Additional Inherited Members | |
![]() | |
enum | TYPE { FORMULA_C, TERRAIN_C, LOCATION_C, UNIT_TYPE_C, UNIT_C, ATTACK_TYPE_C, MOVE_PARTIAL_C, MOVE_C, ATTACK_C, MOVE_MAP_C } |
![]() | |
virtual | ~formula_callable () |
virtual void | set_value (const std::string &key, const variant &value) |
virtual int | do_compare (const formula_callable *callable) const |
virtual void | serialize_to_string (std::string &) const |
![]() | |
void | turn_reference_counting_off () const |
![]() | |
TYPE | type_ |
Definition at line 113 of file callable.hpp.
|
inline |
Definition at line 130 of file callable.hpp.
|
inlineprivatevirtual |
Reimplemented from game_logic::formula_callable.
Definition at line 125 of file callable.hpp.
References game_logic::formula_callable::get_inputs().
|
inlineprivatevirtual |
Implements game_logic::formula_callable.
Definition at line 116 of file callable.hpp.
References variant::is_null(), and game_logic::formula_callable::query_value().
|
private |
Definition at line 115 of file callable.hpp.
|
private |
Definition at line 114 of file callable.hpp.