The Battle for Wesnoth  1.15.1+dev
Classes | Macros | Functions | Variables
play_controller.cpp File Reference

Handle input via mouse & keyboard, events, schedule commands. More...

#include "play_controller.hpp"
#include "actions/create.hpp"
#include "actions/heal.hpp"
#include "actions/undo.hpp"
#include "actions/vision.hpp"
#include "ai/manager.hpp"
#include "ai/testing.hpp"
#include "preferences/credentials.hpp"
#include "display_chat_manager.hpp"
#include "formula/string_utils.hpp"
#include "game_events/menu_item.hpp"
#include "game_events/pump.hpp"
#include "preferences/game.hpp"
#include "game_state.hpp"
#include "hotkey/hotkey_item.hpp"
#include "hotkey/hotkey_handler.hpp"
#include "map/label.hpp"
#include "gettext.hpp"
#include "gui/dialogs/loading_screen.hpp"
#include "gui/dialogs/transient_message.hpp"
#include "hotkey/command_executor.hpp"
#include "log.hpp"
#include "pathfind/teleport.hpp"
#include "preferences/display.hpp"
#include "random.hpp"
#include "replay.hpp"
#include "reports.hpp"
#include "resources.hpp"
#include "savegame.hpp"
#include "saved_game.hpp"
#include "save_blocker.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "scripting/plugins/context.hpp"
#include "sound.hpp"
#include "soundsource.hpp"
#include "statistics.hpp"
#include "synced_context.hpp"
#include "terrain/type_data.hpp"
#include "tooltips.hpp"
#include "units/unit.hpp"
#include "units/id.hpp"
#include "whiteboard/manager.hpp"
#include "utils/functional.hpp"
Include dependency graph for play_controller.cpp:

Go to the source code of this file.

Classes

struct  throw_end_level
 

Macros

#define LOG_AIT   LOG_STREAM(info, log_aitesting)
 
#define LOG_NG   LOG_STREAM(info, log_engine)
 
#define DBG_NG   LOG_STREAM(debug, log_engine)
 
#define ERR_DP   LOG_STREAM(err, log_display)
 
#define LOG_RG   LOG_STREAM(info, log_enginerefac)
 
#define DBG_EE   LOG_STREAM(debug, log_engine_enemies)
 

Functions

static void copy_persistent (const config &src, config &dst)
 Copies [scenario] attributes/tags that are not otherwise stored in C++ structs/clases. More...
 
static void clear_resources ()
 
static int modulo (int num, int mod, int min)
 

Variables

static lg::log_domain log_aitesting ("aitesting")
 
static lg::log_domain log_engine ("engine")
 
static lg::log_domain log_display ("display")
 
static lg::log_domain log_enginerefac ("enginerefac")
 
static lg::log_domain log_engine_enemies ("engine/enemies")
 

Detailed Description

Handle input via mouse & keyboard, events, schedule commands.

Definition in file play_controller.cpp.

Macro Definition Documentation

◆ DBG_EE

#define DBG_EE   LOG_STREAM(debug, log_engine_enemies)

Definition at line 82 of file play_controller.cpp.

Referenced by play_controller::check_victory().

◆ DBG_NG

#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 73 of file play_controller.cpp.

◆ ERR_DP

#define ERR_DP   LOG_STREAM(err, log_display)

Definition at line 76 of file play_controller.cpp.

Referenced by play_controller::enter_textbox(), and play_controller::tab().

◆ LOG_AIT

#define LOG_AIT   LOG_STREAM(info, log_aitesting)

◆ LOG_NG

#define LOG_NG   LOG_STREAM(info, log_engine)

◆ LOG_RG

#define LOG_RG   LOG_STREAM(info, log_enginerefac)

Definition at line 79 of file play_controller.cpp.

Function Documentation

◆ clear_resources()

static void clear_resources ( )
static

◆ copy_persistent()

static void copy_persistent ( const config src,
config dst 
)
static

Copies [scenario] attributes/tags that are not otherwise stored in C++ structs/clases.

Definition at line 87 of file play_controller.cpp.

References config::append_children().

Referenced by play_controller::play_controller().

◆ modulo()

static int modulo ( int  num,
int  mod,
int  min 
)
static
Returns
: the number n in [min, min+mod ) so that (n - num) is a multiple of mod.

Definition at line 725 of file play_controller.cpp.

References n.

Referenced by play_controller::find_last_visible_team(), and play_controller::play_turn().

Variable Documentation

◆ log_aitesting

lg::log_domain log_aitesting("aitesting")
static

◆ log_display

lg::log_domain log_display("display")
static

◆ log_engine

lg::log_domain log_engine("engine")
static

◆ log_engine_enemies

lg::log_domain log_engine_enemies("engine/enemies")
static

◆ log_enginerefac

lg::log_domain log_enginerefac("enginerefac")
static