#include <callable_objects.hpp>
Private Attributes | |
const unit_type & | u_ |
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 172 of file callable_objects.hpp.
|
inline |
Definition at line 174 of file callable_objects.hpp.
References game_logic::formula_callable::type_, and game_logic::formula_callable::UNIT_TYPE_C.
int unit_type_callable::do_compare | ( | const formula_callable * | callable | ) | const |
Definition at line 457 of file callable_objects.cpp.
References unit_type::id(), and u_.
|
virtual |
Reimplemented from game_logic::formula_callable.
Definition at line 437 of file callable_objects.cpp.
References game_logic::FORMULA_READ_ONLY.
|
inline |
Definition at line 180 of file callable_objects.hpp.
References u_.
|
virtual |
Implements game_logic::formula_callable.
Definition at line 375 of file callable_objects.cpp.
References unit_type::attacks(), unit_type::cost(), unit_type::experience_needed(), unit_type::get_ability_list(), unit_type::hitpoints(), i, unit_type::id(), unit_type::level(), unit_type::movement(), unit_type::musthave_status(), unit_type::possible_traits(), unit_type::race_id(), unit_type::recall_cost(), unit_type::type_name(), u_, and unit_type::usage().
|
private |
Definition at line 186 of file callable_objects.hpp.
Referenced by do_compare(), get_unit_type(), and get_value().