28 virtual const char*
get_type()
const {
return "dismiss"; }
35 virtual bool undo(
int side);
A config object defines a single node in a WML file, with access to child nodes.
std::shared_ptr< const unit > unit_const_ptr
std::shared_ptr< unit > unit_ptr
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)