#include <callable_objects.hpp>
Public Types | |
typedef map_location | location |
Private Attributes | |
const attack_type | att_ |
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 126 of file callable_objects.hpp.
Definition at line 128 of file callable_objects.hpp.
|
inline |
Definition at line 129 of file callable_objects.hpp.
References game_logic::formula_callable::ATTACK_TYPE_C, and game_logic::formula_callable::type_.
int attack_type_callable::do_compare | ( | const formula_callable * | callable | ) | const |
Definition at line 142 of file callable_objects.cpp.
References att_, attack_type::damage(), attack_type::id(), attack_type::num_attacks(), attack_type::range(), attack_type::type(), and attack_type::weapon_specials().
|
inline |
Definition at line 135 of file callable_objects.hpp.
References att_.
|
virtual |
Reimplemented from game_logic::formula_callable.
Definition at line 124 of file callable_objects.cpp.
References game_logic::FORMULA_READ_ONLY.
|
virtual |
Implements game_logic::formula_callable.
Definition at line 83 of file callable_objects.cpp.
References attack_type::accuracy(), config::all_children_range(), att_, attack_type::attack_weight(), attack_type::damage(), variant::DECIMAL_VARIANT, attack_type::defense_weight(), attack_type::icon(), attack_type::id(), attack_type::movement_used(), attack_type::name(), attack_type::num_attacks(), attack_type::parry(), attack_type::range(), attack_type::specials(), and attack_type::type().
|
private |
Definition at line 141 of file callable_objects.hpp.
Referenced by do_compare(), get_attack_type(), and get_value().