#include <callable_objects.hpp>
Public Member Functions | |
move_partial_callable (const map_location &src, const map_location &dst) | |
const map_location & | src () const |
const map_location & | dst () const |
Public Member Functions inherited from game_logic::formula_callable | |
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 |
Public Member Functions inherited from reference_counted_object | |
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< game_logic::formula_input > *inputs) const |
int | do_compare (const formula_callable *callable) const |
Private Attributes | |
map_location | src_ |
map_location | dst_ |
Additional Inherited Members | |
Protected Types inherited from game_logic::formula_callable | |
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 } |
Protected Member Functions inherited from game_logic::formula_callable | |
virtual | ~formula_callable () |
virtual void | set_value (const std::string &key, const variant &value) |
virtual void | serialize_to_string (std::string &) const |
Protected Member Functions inherited from reference_counted_object | |
void | turn_reference_counting_off () const |
Protected Attributes inherited from game_logic::formula_callable | |
TYPE | type_ |
Definition at line 100 of file callable_objects.hpp.
|
inline |
Definition at line 118 of file callable_objects.hpp.
References game_logic::formula_callable::MOVE_PARTIAL_C, and game_logic::formula_callable::type_.
|
privatevirtual |
Reimplemented from game_logic::formula_callable.
Definition at line 67 of file callable_objects.cpp.
References game_logic::formula_callable::do_compare(), map_location::do_compare(), dst_, and src_.
|
inline |
Definition at line 125 of file callable_objects.hpp.
References dst_.
|
inlineprivatevirtual |
Reimplemented from game_logic::formula_callable.
Definition at line 111 of file callable_objects.hpp.
References game_logic::FORMULA_READ_ONLY.
|
inlineprivatevirtual |
Implements game_logic::formula_callable.
Definition at line 102 of file callable_objects.hpp.
|
inline |
Definition at line 124 of file callable_objects.hpp.
References src_.
|
private |
Definition at line 101 of file callable_objects.hpp.
Referenced by do_compare(), and dst().
|
private |
Definition at line 101 of file callable_objects.hpp.
Referenced by do_compare(), and src().