Handle unit-type specific attributes, animations, advancement. More...
#include "global.hpp"
#include "units/attack_type.hpp"
#include "formula/callable_objects.hpp"
#include "formula/formula.hpp"
#include "log.hpp"
#include "serialization/string_utils.hpp"
#include "gettext.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) |
Functions | |
static bool | matches_simple_filter (const attack_type &attack, const config &filter) |
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") |
Handle unit-type specific attributes, animations, advancement.
Definition in file attack_type.cpp.
#define DBG_CF LOG_STREAM(debug, log_config) |
Definition at line 34 of file attack_type.cpp.
#define DBG_UT LOG_STREAM(debug, log_unit) |
Definition at line 37 of file attack_type.cpp.
#define ERR_CF LOG_STREAM(err, log_config) |
Definition at line 31 of file attack_type.cpp.
#define ERR_UT LOG_STREAM(err, log_unit) |
Definition at line 38 of file attack_type.cpp.
#define LOG_CONFIG LOG_STREAM(info, log_config) |
Definition at line 33 of file attack_type.cpp.
#define WRN_CF LOG_STREAM(warn, log_config) |
Definition at line 32 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 96 of file attack_type.cpp.
References attack_type::accuracy(), variant::as_bool(), attack_type::damage(), e, game_logic::formula::evaluate(), game_logic::formula_error::filename, gui2::event::find(), attack_type::get_special_bool(), attack_type::id(), in_ranges(), game_logic::formula_error::line, attack_type::movement_used(), attack_type::num_attacks(), attack_type::parry(), utils::parse_ranges(), attack_type::range(), utils::split(), attack_type::type(), game_logic::formula_error::type, and lg::wml_error().
Referenced by attack_type::matches_filter().
|
static |
|
static |