Manage unit-abilities, like heal, cure, and weapon_specials. More...
#include "deprecation.hpp"#include "display.hpp"#include "display_context.hpp"#include "filter_context.hpp"#include "font/standard_colors.hpp"#include "formula/callable_objects.hpp"#include "formula/formula.hpp"#include "formula/function_gamestate.hpp"#include "formula/string_utils.hpp"#include "game_board.hpp"#include "game_version.hpp"#include "gettext.hpp"#include "lexical_cast.hpp"#include "log.hpp"#include "map/map.hpp"#include "resources.hpp"#include "serialization/markup.hpp"#include "team.hpp"#include "terrain/filter.hpp"#include "units/types.hpp"#include "units/abilities.hpp"#include "units/ability_tags.hpp"#include "units/filter.hpp"#include "units/map.hpp"#include "utils/config_filters.hpp"#include "units/unit.hpp"#include <utility>Go to the source code of this file.
Namespaces | |
| unit_abilities | |
Macros | |
| #define | ERR_NG LOG_STREAM(err, log_engine) |
| #define | ERR_WML LOG_STREAM(err, log_wml) |
Functions | |
| static void | add_string_to_vector (std::vector< std::string > &image_list, const config &cfg, const std::string &attribute_name) |
| template std::pair< int, map_location > | active_ability_list::get_extremum< std::less< int > > (const std::string &key, int def, const std::less< int > &comp) const |
| template std::pair< int, map_location > | active_ability_list::get_extremum< std::greater< int > > (const std::string &key, int def, const std::greater< int > &comp) const |
| bool | unit_abilities::filter_base_matches (const config &cfg, int def) |
| std::string | unit_abilities::substitute_variables (const std::string &str, const unit_ability_t &ab) |
| Substitute gettext variables in name and description of abilities and specials. More... | |
| int | unit_abilities::individual_value_int (const config::attribute_value *v, int def, const active_ability &ability, const map_location &loc, const const_attack_ptr &att) |
| int | unit_abilities::individual_value_double (const config::attribute_value *v, int def, const active_ability &ability, const map_location &loc, const const_attack_ptr &att) |
already added | |
| static void | add_name (std::string &temp_string, bool active, const std::string &name, std::set< std::string > &checking_name) |
| static void | add_name_list (std::string &temp_string, std::string &weapon_abilities, std::set< std::string > &checking_name, const std::string &from_str) |
| static bool | overwrite_special_affects (const unit_ability_t &ab) |
Variables | |
| static lg::log_domain | log_engine ("engine") |
| static lg::log_domain | log_wml ("wml") |
Manage unit-abilities, like heal, cure, and weapon_specials.
Definition in file abilities.cpp.
| #define ERR_NG LOG_STREAM(err, log_engine) |
Definition at line 54 of file abilities.cpp.
| #define ERR_WML LOG_STREAM(err, log_wml) |
Definition at line 57 of file abilities.cpp.
| template std::pair<int, map_location> active_ability_list::get_extremum< std::greater< int > > | ( | const std::string & | key, |
| int | def, | ||
| const std::greater< int > & | comp | ||
| ) | const |
| template std::pair<int, map_location> active_ability_list::get_extremum< std::less< int > > | ( | const std::string & | key, |
| int | def, | ||
| const std::less< int > & | comp | ||
| ) | const |
|
static |
Definition at line 903 of file abilities.cpp.
References t_string::empty(), unit::name(), markup::span_color(), and font::TITLE_COLOR.
Referenced by attack_type::describe_weapon_specials_value(), attack_type::weapon_specials_impl_adj(), and attack_type::weapon_specials_impl_self().
|
static |
Definition at line 953 of file abilities.cpp.
Referenced by attack_type::describe_weapon_specials_value().
|
static |
Definition at line 544 of file abilities.cpp.
References cfg, and utils::contains().
Referenced by unit::halo_or_icon_abilities().
|
static |
Definition at line 1486 of file abilities.cpp.
References unit_ability_t::cfg().
Referenced by attack_type::overwrite_special_checking(), and attack_type::overwrite_special_overwriter().
|
static |
|
static |