The Battle for Wesnoth  1.19.7+dev
Macros | Functions | Variables
synced_commands.cpp File Reference
#include "synced_commands.hpp"
#include <cassert>
#include "log.hpp"
#include "map/location.hpp"
#include "game_data.hpp"
#include "units/unit.hpp"
#include "team.hpp"
#include "play_controller.hpp"
#include "actions/create.hpp"
#include "actions/advancement.hpp"
#include "actions/attack.hpp"
#include "actions/move.hpp"
#include "actions/undo.hpp"
#include "preferences/preferences.hpp"
#include "game_events/pump.hpp"
#include "map/map.hpp"
#include "recall_list_manager.hpp"
#include "resources.hpp"
#include "savegame.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "formula/string_utils.hpp"
#include "units/types.hpp"
#include "units/udisplay.hpp"
#include "whiteboard/manager.hpp"
#include "font/standard_colors.hpp"
Include dependency graph for synced_commands.cpp:

Go to the source code of this file.

Macros

#define DBG_REPLAY   LOG_STREAM(debug, log_replay)
 
#define LOG_REPLAY   LOG_STREAM(info, log_replay)
 
#define WRN_REPLAY   LOG_STREAM(warn, log_replay)
 
#define ERR_REPLAY   LOG_STREAM(err, log_replay)
 

Functions

 SYNCED_COMMAND_HANDLER_FUNCTION (recruit, child, spectator)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (recall, child, spectator)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (attack, child, spectator)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (disband, child, spectator)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (move, child, spectator)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (fire_event, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (custom_command, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (auto_shroud, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (update_shroud,, spectator)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_terrain, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_unit, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_create_unit, child, spectator)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_lua, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_teleport, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_kill, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_next_level, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_turn_limit, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_turn, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_set_var, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_gold, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_event, child,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_fog,,)
 
 SYNCED_COMMAND_HANDLER_FUNCTION (debug_shroud,,)
 

Variables

static lg::log_domain log_replay ("replay")
 

Macro Definition Documentation

◆ DBG_REPLAY

#define DBG_REPLAY   LOG_STREAM(debug, log_replay)

Definition at line 44 of file synced_commands.cpp.

◆ ERR_REPLAY

#define ERR_REPLAY   LOG_STREAM(err, log_replay)

Definition at line 47 of file synced_commands.cpp.

◆ LOG_REPLAY

#define LOG_REPLAY   LOG_STREAM(info, log_replay)

Definition at line 45 of file synced_commands.cpp.

◆ WRN_REPLAY

#define WRN_REPLAY   LOG_STREAM(warn, log_replay)

Definition at line 46 of file synced_commands.cpp.

Function Documentation

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [1/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( attack  ,
child  ,
spectator   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [2/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( auto_shroud  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [3/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( custom_command  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [4/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_create_unit  ,
child  ,
spectator   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [5/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_event  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [6/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_fog  )

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [7/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_gold  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [8/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_kill  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [9/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_lua  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [10/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_next_level  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [11/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_set_var  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [12/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_shroud  )

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [13/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_teleport  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [14/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_terrain  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [15/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_turn  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [16/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_turn_limit  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [17/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( debug_unit  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [18/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( disband  ,
child  ,
spectator   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [19/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( fire_event  ,
child   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [20/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( move  ,
child  ,
spectator   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [21/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( recall  ,
child  ,
spectator   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [22/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( recruit  ,
child  ,
spectator   
)

◆ SYNCED_COMMAND_HANDLER_FUNCTION() [23/23]

SYNCED_COMMAND_HANDLER_FUNCTION ( update_shroud  ,
spectator   
)

Variable Documentation

◆ log_replay

lg::log_domain log_replay("replay") ( "replay"  )
static