25 , dismissed_unit(dismissed->clone())
31 , dismissed_unit(
unit::create(cfg.mandatory_child(
"unit")))
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.
static auto red_undo_dismiss
std::shared_ptr< const unit > unit_const_ptr
dismiss_action(const unit_const_ptr &dismissed)
virtual void write(config &cfg) const
Writes this into the provided config.
virtual bool undo(int side)
Undoes this action.
Records information to be able to undo an action.
virtual void write(config &cfg) const
Writes this into the provided config.