#include <callable_objects.hpp>
Public Types | |
typedef map_location | location |
Private Attributes | |
const location & | loc_ |
const unit & | u_ |
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 145 of file callable_objects.hpp.
typedef map_location unit_callable::location |
Definition at line 147 of file callable_objects.hpp.
Definition at line 148 of file callable_objects.hpp.
References game_logic::formula_callable::type_, and game_logic::formula_callable::UNIT_C.
|
inline |
Definition at line 154 of file callable_objects.hpp.
References game_logic::formula_callable::type_, and game_logic::formula_callable::UNIT_C.
int unit_callable::do_compare | ( | const formula_callable * | callable | ) | const |
Definition at line 365 of file callable_objects.cpp.
References u_, and unit::underlying_id().
|
virtual |
Reimplemented from game_logic::formula_callable.
Definition at line 321 of file callable_objects.cpp.
References game_logic::FORMULA_READ_ONLY.
|
inline |
Definition at line 161 of file callable_objects.hpp.
References loc_.
Referenced by game_logic::attack_candidate_action::evaluate().
|
inline |
Definition at line 160 of file callable_objects.hpp.
References u_.
|
virtual |
Implements game_logic::formula_callable.
Definition at line 167 of file callable_objects.cpp.
References unit::advances_to(), unit::alignment(), unit::attacks(), unit::attacks_left(), unit::can_recruit(), convert_map(), unit::cost(), unit::experience(), unit::facing(), unit::formula_manager(), unit_formula_manager::formula_vars(), unit::gender(), gender_string(), unit::get_ability_list(), unit::get_emit_zoc(), unit::get_hidden(), unit::get_role(), unit::get_state(), unit::get_states(), unit::get_traits_list(), unit::hitpoints(), i, unit_race::id(), unit::id(), unit::incapacitated(), unit::level(), loc_, unit::max_attacks(), unit::max_experience(), unit::max_hitpoints(), unit::movement_left(), unit::name(), map_location::null_location(), unit::race(), unit::recruits(), unit::resting(), unit::side(), unit::total_movement(), unit::type_id(), u_, unit::upkeep(), unit::usage(), unit::variables(), unit::variation(), map_location::write_direction(), map_location::x, and map_location::y.
|
private |
Definition at line 167 of file callable_objects.hpp.
Referenced by get_location(), and get_value().
|
private |
Definition at line 168 of file callable_objects.hpp.
Referenced by do_compare(), get_unit(), and get_value().