40 virtual const char*
get_type()
const {
return "dismiss"; }
47 virtual bool undo(
int side);
A config object defines a single node in a WML file, with access to child nodes.
unit_ptr make_unit_ptr(const config &cfg, bool use_traits, const vconfig *vcfg)
std::shared_ptr< const unit > unit_const_ptr
std::shared_ptr< unit > unit_ptr
dismiss_action(const config &cfg, const config &unit_cfg)
virtual ~dismiss_action()
virtual void write(config &cfg) const
Writes this into the provided config.
virtual const char * get_type() const
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)