Records information to be able to undo an action. More...
#include <undo_action.hpp>
Public Member Functions | |
undo_action_base (const undo_action_base &)=delete | |
undo_action_base & | operator= (const undo_action_base &)=delete |
undo_action_base () | |
Default constructor. More... | |
virtual | ~undo_action_base () |
virtual void | write (config &cfg) const |
Writes this into the provided config. More... | |
virtual const char * | get_type () const =0 |
Records information to be able to undo an action.
Each type of action gets its own derived type. Base class for all entries in the undo stack, also contains non undoable actions like update_shroud or auto_shroud.
Definition at line 41 of file undo_action.hpp.
|
delete |
|
inline |
Default constructor.
This is the only way to get nullptr view_info.
Definition at line 50 of file undo_action.hpp.
|
inlinevirtual |
Definition at line 53 of file undo_action.hpp.
|
pure virtual |
|
delete |
|
inlinevirtual |
Writes this into the provided config.
Reimplemented in actions::undo::update_shroud_action, actions::undo::auto_shroud_action, actions::undo::recruit_action, actions::undo::recall_action, actions::undo::move_action, actions::undo::dismiss_action, and actions::undo_action.
Definition at line 56 of file undo_action.hpp.
References get_type().
Referenced by actions::undo_action::write(), actions::undo::auto_shroud_action::write(), and actions::undo::update_shroud_action::write().