The Battle for Wesnoth  1.19.5+dev
Classes | Namespaces | Macros | Functions | Variables
handlers.cpp File Reference

The structure that tracks WML event handlers. More...

#include "game_events/handlers.hpp"
#include "game_events/conditional_wml.hpp"
#include "game_events/pump.hpp"
#include "game_events/manager_impl.hpp"
#include "formula/callable_objects.hpp"
#include "formula/formula.hpp"
#include "formula/string_utils.hpp"
#include "game_board.hpp"
#include "game_data.hpp"
#include "log.hpp"
#include "play_controller.hpp"
#include "resources.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "side_filter.hpp"
#include "sound.hpp"
#include "units/filter.hpp"
#include "units/unit.hpp"
#include "variable.hpp"
Include dependency graph for handlers.cpp:

Go to the source code of this file.

Classes

struct  game_events::filter_condition
 
struct  game_events::filter_side
 
struct  game_events::filter_unit
 
struct  game_events::filter_attack
 
struct  game_events::filter_formula
 
struct  game_events::filter_dynamic
 This is a dynamic wrapper for any filter type, specified via [insert_tag]. More...
 

Namespaces

 game_events
 Domain specific events.
 

Macros

#define DBG_NG   LOG_STREAM(debug, log_engine)
 
#define LOG_NG   LOG_STREAM(info, log_engine)
 
#define WRN_NG   LOG_STREAM(warn, log_engine)
 
#define DBG_EH   LOG_STREAM(debug, log_event_handler)
 

Functions

static std::unique_ptr< event_filter > game_events::make_filter (const std::string &key, const vconfig &contents)
 

Variables

static lg::log_domain log_engine ("engine")
 
static lg::log_domain log_event_handler ("event_handler")
 

Detailed Description

The structure that tracks WML event handlers.

(Typically, handlers are defined by [event] tags.)

Definition in file handlers.cpp.

Macro Definition Documentation

◆ DBG_EH

#define DBG_EH   LOG_STREAM(debug, log_event_handler)

Definition at line 48 of file handlers.cpp.

◆ DBG_NG

#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 43 of file handlers.cpp.

◆ LOG_NG

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 44 of file handlers.cpp.

◆ WRN_NG

#define WRN_NG   LOG_STREAM(warn, log_engine)

Definition at line 45 of file handlers.cpp.

Variable Documentation

◆ log_engine

lg::log_domain log_engine("engine") ( "engine"  )
static

◆ log_event_handler

lg::log_domain log_event_handler("event_handler") ( "event_handler"  )
static