#include <undo_action.hpp>
Public Member Functions | |
undo_event (int fcn_idx, const config &args, const game_events::queued_event &ctx) | |
undo_event (const config &cmds, const game_events::queued_event &ctx) | |
undo_event (const config &cfg) | |
virtual bool | undo (int side) |
Undoes this action. More... | |
virtual void | write (config &cfg) const |
Writes this into the provided config. More... | |
virtual const char * | get_type () const |
Public Member Functions inherited from actions::undo_action | |
undo_action () | |
virtual | ~undo_action () |
Static Public Member Functions | |
static const char * | get_type_impl () |
Private Member Functions | |
undo_event (const config &first, const config &second, const config &weapons, const config &cmds) | |
Private Attributes | |
utils::optional< int > | lua_idx |
config | commands |
config | data |
map_location | loc1 |
map_location | loc2 |
map_location | filter_loc1 |
map_location | filter_loc2 |
std::size_t | uid1 |
std::size_t | uid2 |
std::string | id1 |
std::string | id2 |
Definition at line 98 of file undo_action.hpp.
actions::undo_event::undo_event | ( | int | fcn_idx, |
const config & | args, | ||
const game_events::queued_event & | ctx | ||
) |
Definition at line 90 of file undo_action.cpp.
References game_events::entity_location::get_unit(), id1, id2, game_events::queued_event::loc1, game_events::queued_event::loc2, uid1, and uid2.
actions::undo_event::undo_event | ( | const config & | cmds, |
const game_events::queued_event & | ctx | ||
) |
Definition at line 111 of file undo_action.cpp.
References game_events::entity_location::get_unit(), id1, id2, game_events::queued_event::loc1, game_events::queued_event::loc2, uid1, and uid2.
actions::undo_event::undo_event | ( | const config & | cfg | ) |
Definition at line 145 of file undo_action.cpp.
|
private |
Definition at line 131 of file undo_action.cpp.
|
inlinevirtual |
Implements actions::undo_action.
Definition at line 112 of file undo_action.hpp.
References get_type_impl().
|
inlinestatic |
Definition at line 111 of file undo_action.hpp.
Referenced by get_type().
|
virtual |
Undoes this action.
Implements actions::undo_action.
Definition at line 167 of file undo_action.cpp.
References sound::commit_music_changes(), config_attribute_value::create(), e, resources::gameboard, resources::gamedata, resources::lua_kernel, game_lua_kernel::run_wml_action(), game_lua_kernel::run_wml_event(), swap(), markup::tag(), and game_board::units().
|
virtual |
Writes this into the provided config.
Reimplemented from actions::undo_action.
Definition at line 209 of file undo_action.cpp.
References config::add_child(), and actions::undo_action::write().
|
private |
Definition at line 118 of file undo_action.hpp.
|
private |
Definition at line 118 of file undo_action.hpp.
|
private |
Definition at line 119 of file undo_action.hpp.
|
private |
Definition at line 119 of file undo_action.hpp.
|
private |
Definition at line 121 of file undo_action.hpp.
Referenced by undo_event().
|
private |
Definition at line 121 of file undo_action.hpp.
Referenced by undo_event().
|
private |
Definition at line 119 of file undo_action.hpp.
|
private |
Definition at line 119 of file undo_action.hpp.
|
private |
Definition at line 117 of file undo_action.hpp.
|
private |
Definition at line 120 of file undo_action.hpp.
Referenced by undo_event().
|
private |
Definition at line 120 of file undo_action.hpp.
Referenced by undo_event().