#include <callable_objects.hpp>
Public Types | |
typedef map_location | location |
Private Attributes | |
const location | loc_ |
const terrain_type & | t_ |
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 int | do_compare (const formula_callable *callable) const |
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 66 of file callable_objects.hpp.
Definition at line 68 of file callable_objects.hpp.
|
inline |
Definition at line 69 of file callable_objects.hpp.
References game_logic::formula_callable::TERRAIN_C, and game_logic::formula_callable::type_.
int terrain_callable::do_compare | ( | const formula_callable * | callable | ) | const |
Definition at line 591 of file callable_objects.cpp.
References map_location::do_compare(), and loc_.
|
virtual |
Reimplemented from game_logic::formula_callable.
Definition at line 573 of file callable_objects.cpp.
References game_logic::FORMULA_READ_ONLY.
|
virtual |
Implements game_logic::formula_callable.
Definition at line 541 of file callable_objects.cpp.
References terrain_type::description(), terrain_type::editor_name(), terrain_type::gives_healing(), terrain_type::icon_image(), terrain_type::id(), terrain_type::is_castle(), terrain_type::is_keep(), terrain_type::is_village(), terrain_type::light_bonus(), loc_, terrain_type::name(), t_, map_location::x, and map_location::y.
|
private |
Definition at line 80 of file callable_objects.hpp.
Referenced by do_compare(), and get_value().
|
private |
Definition at line 81 of file callable_objects.hpp.
Referenced by get_value().