The Battle for Wesnoth  1.19.7+dev
Classes | Functions | Variables
actions::undo Namespace Reference

Classes

struct  dismiss_action
 
struct  move_action
 
struct  recall_action
 
struct  recruit_action
 
struct  auto_shroud_action
 

Functions

static void reset_adjacent (bool &halo_adjacent, unit_map &units, const map_location &loc)
 Reset halo of adjacent units when undo move. More...
 
static const unit_typeget_unit_type (const config &cfg)
 

Variables

static auto red_undo_dismiss = undo_action_container::subaction_factory<dismiss_action>()
 
static auto reg_undo_move = undo_action_container::subaction_factory<move_action>()
 
static auto reg_undo_recall = undo_action_container::subaction_factory<recall_action>()
 
static auto reg_undo_recruit = undo_action_container::subaction_factory<recruit_action>()
 
static auto reg_auto_shroud = undo_action_container::subaction_factory<auto_shroud_action>()
 

Function Documentation

◆ get_unit_type()

static const unit_type& actions::undo::get_unit_type ( const config cfg)
static

◆ reset_adjacent()

static void actions::undo::reset_adjacent ( bool &  halo_adjacent,
unit_map units,
const map_location loc 
)
static

Reset halo of adjacent units when undo move.

Definition at line 61 of file undo_move_action.cpp.

References unit_map::end(), unit_map::find(), get_adjacent_tiles(), i, and loc.

Referenced by actions::undo::move_action::undo().

Variable Documentation

◆ red_undo_dismiss

auto actions::undo::red_undo_dismiss = undo_action_container::subaction_factory<dismiss_action>()
static

Definition at line 56 of file undo_dismiss_action.cpp.

◆ reg_auto_shroud

auto actions::undo::reg_auto_shroud = undo_action_container::subaction_factory<auto_shroud_action>()
static

Definition at line 39 of file undo_update_shroud_action.cpp.

◆ reg_undo_move

auto actions::undo::reg_undo_move = undo_action_container::subaction_factory<move_action>()
static

Definition at line 127 of file undo_move_action.cpp.

◆ reg_undo_recall

auto actions::undo::reg_undo_recall = undo_action_container::subaction_factory<recall_action>()
static

Definition at line 102 of file undo_recall_action.cpp.

◆ reg_undo_recruit

auto actions::undo::reg_undo_recruit = undo_action_container::subaction_factory<recruit_action>()
static

Definition at line 103 of file undo_recruit_action.cpp.