The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 "dialogs.hpp"
#include "display_chat_manager.hpp"
#include "formula/string_utils.hpp"
#include "game_events/manager.hpp"
#include "game_events/menu_item.hpp"
#include "game_events/pump.hpp"
#include "game_preferences.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/loadscreen.hpp"
#include "gui/dialogs/transient_message.hpp"
#include "halo.hpp"
#include "hotkey/command_executor.hpp"
#include "log.hpp"
#include "pathfind/teleport.hpp"
#include "preferences_display.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 "wml_exception.hpp"
#include <boost/make_shared.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

#define DBG_EE   LOG_STREAM(debug, log_engine_enemies)

Definition at line 85 of file play_controller.cpp.

Referenced by play_controller::check_victory().

#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 76 of file play_controller.cpp.

#define ERR_DP   LOG_STREAM(err, log_display)

Definition at line 79 of file play_controller.cpp.

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

#define LOG_AIT   LOG_STREAM(info, log_aitesting)
#define LOG_NG   LOG_STREAM(info, log_engine)
#define LOG_RG   LOG_STREAM(info, log_enginerefac)

Definition at line 82 of file play_controller.cpp.

Function Documentation

static void clear_resources ( )
static
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 90 of file play_controller.cpp.

References config::append_children().

Referenced by play_controller::play_controller().

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 698 of file play_controller.cpp.

Referenced by play_controller::find_last_visible_team().

Variable Documentation

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