The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions | Variables
attack_type.cpp File Reference

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

#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.

Function Documentation

static bool matches_simple_filter ( const attack_type attack,
const config filter 
)
static

Variable Documentation

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