The Battle for Wesnoth  1.19.7+dev
Classes | Namespaces | Macros | Variables
pump.cpp File Reference

Handles the current state of WML-events. More...

#include "game_events/pump.hpp"
#include "game_events/handlers.hpp"
#include "display_chat_manager.hpp"
#include "game_config.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "play_controller.hpp"
#include "resources.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "units/unit.hpp"
#include "variable.hpp"
#include "video.hpp"
#include "whiteboard/manager.hpp"
Include dependency graph for pump.cpp:

Go to the source code of this file.

Classes

struct  game_events::context::state
 State when processing a particular flight of events or commands. More...
 
class  game_events::context::scoped
 
struct  game_events::pump_impl
 

Namespaces

 game_events
 Domain specific events.
 
 game_events::context
 

Macros

#define DBG_NG   LOG_STREAM(debug, log_engine)
 
#define LOG_NG   LOG_STREAM(info, log_engine)
 
#define ERR_NG   LOG_STREAM(err, log_engine)
 
#define DBG_WML   LOG_STREAM(debug, log_wml)
 
#define LOG_WML   LOG_STREAM(info, log_wml)
 
#define WRN_WML   LOG_STREAM(warn, log_wml)
 
#define ERR_WML   LOG_STREAM(err, log_wml)
 
#define DBG_EH   LOG_STREAM(debug, log_event_handler)
 

Variables

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

Detailed Description

Handles the current state of WML-events.

This includes raising and firing, as well as tracking the context for event firing.

Definition in file pump.cpp.

Macro Definition Documentation

◆ DBG_EH

#define DBG_EH   LOG_STREAM(debug, log_event_handler)

Definition at line 50 of file pump.cpp.

◆ DBG_NG

#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 39 of file pump.cpp.

◆ DBG_WML

#define DBG_WML   LOG_STREAM(debug, log_wml)

Definition at line 44 of file pump.cpp.

◆ ERR_NG

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 41 of file pump.cpp.

◆ ERR_WML

#define ERR_WML   LOG_STREAM(err, log_wml)

Definition at line 47 of file pump.cpp.

◆ LOG_NG

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 40 of file pump.cpp.

◆ LOG_WML

#define LOG_WML   LOG_STREAM(info, log_wml)

Definition at line 45 of file pump.cpp.

◆ WRN_WML

#define WRN_WML   LOG_STREAM(warn, log_wml)

Definition at line 46 of file pump.cpp.

Variable Documentation

◆ impl_

pump_impl& impl_
private

◆ log_engine

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

◆ log_event_handler

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

◆ log_wml

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

◆ pumped_count_

std::size_t pumped_count_
private

Tracks how many events have been processed.

Definition at line 141 of file pump.cpp.

◆ queue_

std::vector<queued_event> queue_
private

Tracks the events to process.

This isolates these events from any events that might be generated during the processing.

Definition at line 138 of file pump.cpp.

◆ x1_

int x1_
private

Definition at line 132 of file pump.cpp.

◆ x2_

int x2_
private

Definition at line 132 of file pump.cpp.

◆ y1_

int y1_
private

Definition at line 132 of file pump.cpp.

◆ y2_

int y2_
private

Definition at line 132 of file pump.cpp.