The Battle for Wesnoth  1.13.11+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 "game_events/pump.hpp"
#include "game_events/conditional_wml.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 "side_filter.hpp"
#include "units/map.hpp"
#include "units/unit.hpp"
#include "variable.hpp"
#include "whiteboard/manager.hpp"
#include <iomanip>
#include <iostream>
Include dependency graph for pump.cpp:

Go to the source code of this file.


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


 Domain specific events.


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


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)
#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 42 of file pump.cpp.

#define DBG_WML   LOG_STREAM(debug, log_wml)

Definition at line 47 of file pump.cpp.

#define ERR_NG   LOG_STREAM(err, log_engine)

Definition at line 44 of file pump.cpp.

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

#define ERR_WML   LOG_STREAM(err, log_wml)

Definition at line 50 of file pump.cpp.

#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 43 of file pump.cpp.

#define LOG_WML   LOG_STREAM(info, log_wml)

Definition at line 48 of file pump.cpp.

#define WRN_WML   LOG_STREAM(warn, log_wml)

Definition at line 49 of file pump.cpp.

Variable Documentation

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

Tracks how many events have been processed.

Definition at line 148 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 145 of file pump.cpp.

int x1_

Definition at line 139 of file pump.cpp.

int x2_

Definition at line 139 of file pump.cpp.

int y1_

Definition at line 139 of file pump.cpp.

int y2_

Definition at line 139 of file pump.cpp.