Handle unit-type specific attributes, animations, advancement. More...
#include "units/attack_type.hpp"
#include "units/unit.hpp"
#include "formula/callable_objects.hpp"
#include "formula/formula.hpp"
#include "formula/string_utils.hpp"
#include "formula/function_gamestate.hpp"
#include "deprecation.hpp"
#include "game_version.hpp"
#include "lexical_cast.hpp"
#include "log.hpp"
#include "serialization/string_utils.hpp"
#include "gettext.hpp"
#include "utils/math.hpp"
Go to the source code of this file.
Macros | |
#define | ERR_CF LOG_STREAM(err, log_config) |
#define | WRN_CF LOG_STREAM(warn, log_config) |
#define | LOG_CONFIG LOG_STREAM(info, log_config) |
#define | DBG_CF LOG_STREAM(debug, log_config) |
#define | DBG_UT LOG_STREAM(debug, log_unit) |
#define | ERR_UT LOG_STREAM(err, log_unit) |
#define | ERR_WML LOG_STREAM(err, log_wml) |
Functions | |
static bool | matches_simple_filter (const attack_type &attack, const config &filter, const std::string &check_if_recursion) |
Returns whether or not *this matches the given filter, ignoring the complexities introduced by [and], [or], and [not]. More... | |
Variables | |
static lg::log_domain | log_config ("config") |
static lg::log_domain | log_unit ("unit") |
static lg::log_domain | log_wml ("wml") |
Handle unit-type specific attributes, animations, advancement.
Definition in file attack_type.cpp.
#define DBG_CF LOG_STREAM(debug, log_config) |
Definition at line 41 of file attack_type.cpp.
#define DBG_UT LOG_STREAM(debug, log_unit) |
Definition at line 44 of file attack_type.cpp.
#define ERR_CF LOG_STREAM(err, log_config) |
Definition at line 38 of file attack_type.cpp.
#define ERR_UT LOG_STREAM(err, log_unit) |
Definition at line 45 of file attack_type.cpp.
#define ERR_WML LOG_STREAM(err, log_wml) |
Definition at line 48 of file attack_type.cpp.
#define LOG_CONFIG LOG_STREAM(info, log_config) |
Definition at line 40 of file attack_type.cpp.
#define WRN_CF LOG_STREAM(warn, log_config) |
Definition at line 39 of file attack_type.cpp.
|
static |
Returns whether or not *this matches the given filter, ignoring the complexities introduced by [and], [or], and [not].
Definition at line 105 of file attack_type.cpp.
References attack_type::accuracy(), attack_type::alignment_str(), wfl::variant::as_bool(), attack_type::attacks_used(), attack_type::damage(), attack_type::damage_type(), deprecated_message(), e, ERR_WML, wfl::formula::evaluate(), attack_type::has_special(), attack_type::has_special_or_ability(), attack_type::has_special_or_ability_with_filter(), attack_type::id(), in_ranges(), lg::log_to_chat(), attack_type::max_range(), attack_type::min_range(), attack_type::movement_used(), attack_type::num_attacks(), config::optional_child(), attack_type::parry(), utils::parse_ranges_int(), utils::parse_ranges_unsigned(), PREEMPTIVE, attack_type::range(), utils::split(), utils::split_set(), and attack_type::type().
Referenced by attack_type::matches_filter().
|
static |
|
static |
|
static |