25 , dismissed_unit(dismissed->clone())
31 , dismissed_unit(
unit::create(unit_cfg))
A config object defines a single node in a WML file, with access to child nodes.
config & add_child(config_key_type key)
void add(const unit_ptr &ptr, int pos=-1)
Add a unit to the list.
This class stores all the data for a single 'side' (in game nomenclature).
recall_list_manager & recall_list()
This class represents a single unit of a specific type.
std::shared_ptr< const unit > unit_const_ptr
virtual void write(config &cfg) const
Writes this into the provided config.
virtual bool undo(int side)
Undoes this action.
dismiss_action(const unit_const_ptr dismissed)
actions that are undoable (this does not include update_shroud and auto_shroud)
virtual void write(config &cfg) const
Writes this into the provided config.
void execute_undo_umc_wml()