The Battle for Wesnoth  1.15.1+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 <cassert>
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)
 

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

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.

◆ 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 
)
static

Variable Documentation

◆ log_config

lg::log_domain log_config("config")
static

◆ log_unit

lg::log_domain log_unit("unit")
static