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

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

#include "global.hpp"
#include "pump.hpp"
#include "conditional_wml.hpp"
#include "handlers.hpp"
#include "manager.hpp"
#include "display_chat_manager.hpp"
#include "game_config.hpp"
#include "game_display.hpp"
#include "game_data.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "play_controller.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "side_filter.hpp"
#include "units/unit.hpp"
#include "units/map.hpp"
#include "whiteboard/manager.hpp"
#include "variable.hpp"
#include "resources.hpp"
#include <iomanip>
#include <iostream>
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

#define DBG_EH   LOG_STREAM(debug, log_event_handler)

Definition at line 58 of file pump.cpp.

Referenced by game_events::t_pump::operator()(), and game_events::t_pump::raise().

#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 47 of file pump.cpp.

#define DBG_WML   LOG_STREAM(debug, log_wml)

Definition at line 52 of file pump.cpp.

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 49 of file pump.cpp.

Referenced by game_events::t_pump::operator()().

#define ERR_WML   LOG_STREAM(err, log_wml)

Definition at line 55 of file pump.cpp.

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 48 of file pump.cpp.

#define LOG_WML   LOG_STREAM(info, log_wml)

Definition at line 53 of file pump.cpp.

#define WRN_WML   LOG_STREAM(warn, log_wml)

Definition at line 54 of file pump.cpp.

Variable Documentation

pump_impl& impl_
lg::log_domain log_engine("engine")
static
lg::log_domain log_event_handler("event_handler")
static
lg::log_domain log_wml("wml")
static
size_t pumped_count_

Tracks how many events have been processed.

Definition at line 141 of file pump.cpp.

std::vector<queued_event> queue_

Tracks the events to process.

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

Definition at line 139 of file pump.cpp.

int x1_

Definition at line 135 of file pump.cpp.

int x2_

Definition at line 135 of file pump.cpp.

int y1_

Definition at line 135 of file pump.cpp.

int y2_

Definition at line 135 of file pump.cpp.