19 , dismissed_unit(new
unit(*dismissed))
24 , dismissed_unit(new
unit(unit_cfg))
27 virtual const char*
get_type()
const {
return "dismiss"; }
34 virtual bool undo(
int side);
36 virtual bool redo(
int side);
dismiss_action(const unit_const_ptr dismissed)
virtual bool redo(int side)
Redoes this action.
dismiss_action(const config &cfg, const config &unit_cfg)
virtual ~dismiss_action()
virtual const char * get_type() const
virtual void write(config &cfg) const
Writes this into the provided config.
A config object defines a single node in a WML file, with access to child nodes.
virtual bool undo(int side)
Undoes this action.
actions that are undoable (this does not include update_shroud and auto_shroud)