The Battle for Wesnoth  1.19.0-dev
Macros | Functions | Variables
attack_type.cpp File Reference

Handle unit-type specific attributes, animations, advancement. More...

#include "units/attack_type.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"
Include dependency graph for attack_type.cpp:

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 &tag_name)
 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")
 

Detailed Description

Handle unit-type specific attributes, animations, advancement.

Definition in file attack_type.cpp.

Macro Definition Documentation

◆ DBG_CF

#define DBG_CF   LOG_STREAM(debug, log_config)

Definition at line 40 of file attack_type.cpp.

◆ DBG_UT

#define DBG_UT   LOG_STREAM(debug, log_unit)

Definition at line 43 of file attack_type.cpp.

◆ ERR_CF

#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 37 of file attack_type.cpp.

◆ ERR_UT

#define ERR_UT   LOG_STREAM(err, log_unit)

Definition at line 44 of file attack_type.cpp.

◆ ERR_WML

#define ERR_WML   LOG_STREAM(err, log_wml)

Definition at line 47 of file attack_type.cpp.

◆ LOG_CONFIG

#define LOG_CONFIG   LOG_STREAM(info, log_config)

Definition at line 39 of file attack_type.cpp.

◆ WRN_CF

#define WRN_CF   LOG_STREAM(warn, log_config)

Definition at line 38 of file attack_type.cpp.

Function Documentation

◆ matches_simple_filter()

static bool matches_simple_filter ( const attack_type attack,
const config filter,
const std::string &  tag_name 
)
static

Variable Documentation

◆ log_config

lg::log_domain log_config("config") ( "config"  )
static

◆ log_unit

lg::log_domain log_unit("unit") ( "unit"  )
static

◆ log_wml

lg::log_domain log_wml("wml") ( "wml"  )
static