Implementations of action WML tags, other than those implemented in Lua, and excluding conditional action WML. More...
#include "game_events/action_wml.hpp"#include "actions/create.hpp"#include "ai/manager.hpp"#include "fake_unit_ptr.hpp"#include "filesystem.hpp"#include "game_display.hpp"#include "log.hpp"#include "map/map.hpp"#include "map/exception.hpp"#include "pathfind/teleport.hpp"#include "pathfind/pathfind.hpp"#include "persist_var.hpp"#include "play_controller.hpp"#include "recall_list_manager.hpp"#include "mouse_handler_base.hpp"#include "resources.hpp"#include "synced_context.hpp"#include "synced_user_choice.hpp"#include "team.hpp"#include "units/unit.hpp"#include "units/animation_component.hpp"#include "units/udisplay.hpp"#include "units/filter.hpp"#include "units/types.hpp"#include "wml_exception.hpp"#include "whiteboard/manager.hpp"#include "deprecation.hpp"Go to the source code of this file.
Namespaces | |
| game_events | |
| Domain specific events. | |
Macros | |
| #define | DBG_NG LOG_STREAM(debug, log_engine) |
| #define | LOG_NG LOG_STREAM(info, log_engine) |
| #define | WRN_NG LOG_STREAM(warn, log_engine) |
| #define | ERR_NG LOG_STREAM(err, log_engine) |
| #define | DBG_DP LOG_STREAM(debug, log_display) |
| #define | LOG_DP LOG_STREAM(info, log_display) |
| #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 | ERR_CF LOG_STREAM(err, log_config) |
| #define | WML_HANDLER_FUNCTION(pname, pei, pcfg) |
| WML_HANDLER_FUNCTION macro handles auto registration for wml handlers. More... | |
Functions | |
| game_events::WML_HANDLER_FUNCTION (clear_global_variable,, pcfg) | |
| Experimental data persistence. More... | |
| game_events::WML_HANDLER_FUNCTION (do_command,, cfg) | |
| game_events::WML_HANDLER_FUNCTION (get_global_variable,, pcfg) | |
| Experimental data persistence. More... | |
| game_events::WML_HANDLER_FUNCTION (modify_turns,, cfg) | |
| game_events::WML_HANDLER_FUNCTION (move_unit_fake,, cfg) | |
| Moving a 'unit' - i.e. More... | |
| game_events::WML_HANDLER_FUNCTION (move_units_fake,, cfg) | |
| game_events::WML_HANDLER_FUNCTION (recall,, cfg) | |
| If we should recall units that match a certain description. More... | |
| game_events::WML_HANDLER_FUNCTION (replace_map,, cfg) | |
| Experimental map replace. More... | |
| game_events::WML_HANDLER_FUNCTION (set_global_variable,, pcfg) | |
| Experimental data persistence. More... | |
| game_events::WML_HANDLER_FUNCTION (set_variables,, cfg) | |
| game_events::WML_HANDLER_FUNCTION (store_relative_direction,, cfg) | |
| Store the relative direction from one hex to another in a WML variable. More... | |
| game_events::WML_HANDLER_FUNCTION (store_rotate_map_location,, cfg) | |
| Store the rotation of one hex around another in a WML variable. More... | |
| game_events::WML_HANDLER_FUNCTION (tunnel,, cfg) | |
| game_events::WML_HANDLER_FUNCTION (unit,, cfg) | |
| If we should spawn a new unit on the map somewhere. More... | |
Variables | |
| static lg::log_domain | log_engine ("engine") |
| static lg::log_domain | log_display ("display") |
| static lg::log_domain | log_wml ("wml") |
| static lg::log_domain | log_config ("config") |
Implementations of action WML tags, other than those implemented in Lua, and excluding conditional action WML.
Definition in file action_wml.cpp.
| #define DBG_DP LOG_STREAM(debug, log_display) |
Definition at line 58 of file action_wml.cpp.
| #define DBG_NG LOG_STREAM(debug, log_engine) |
Definition at line 52 of file action_wml.cpp.
| #define ERR_CF LOG_STREAM(err, log_config) |
Definition at line 67 of file action_wml.cpp.
| #define ERR_NG LOG_STREAM(err, log_engine) |
Definition at line 55 of file action_wml.cpp.
| #define ERR_WML LOG_STREAM(err, log_wml) |
Definition at line 64 of file action_wml.cpp.
| #define LOG_DP LOG_STREAM(info, log_display) |
Definition at line 59 of file action_wml.cpp.
| #define LOG_NG LOG_STREAM(info, log_engine) |
Definition at line 53 of file action_wml.cpp.
| #define LOG_WML LOG_STREAM(info, log_wml) |
Definition at line 62 of file action_wml.cpp.
| #define WML_HANDLER_FUNCTION | ( | pname, | |
| pei, | |||
| pcfg | |||
| ) |
WML_HANDLER_FUNCTION macro handles auto registration for wml handlers.
| pname | wml tag name |
| pei | the variable name of the queued_event object inside the function |
| pcfg | the variable name of the config object inside the function |
You are warned! This is evil macro magic!
The following code registers a [foo] tag:
Generated code looks like this:
Definition at line 234 of file action_wml.cpp.
| #define WRN_NG LOG_STREAM(warn, log_engine) |
Definition at line 54 of file action_wml.cpp.
| #define WRN_WML LOG_STREAM(warn, log_wml) |
Definition at line 63 of file action_wml.cpp.
| std::string filename_ |
Definition at line 534 of file action_wml.cpp.
Referenced by savegame::savegame::check_overwrite(), gui2::dialogs::lua_interpreter::input_model::clear_history(), savegame::savegame::filename(), gui2::dialogs::lua_interpreter::input_model::input_model(), savegame::savegame::save_game(), savegame::savegame::save_game_automatic(), savegame::savegame::save_game_interactive(), savegame::savegame::show_save_dialog(), and savegame::savegame::write_game_to_disk().
|
static |
|
static |
|
static |
|
static |