Records information to be able to undo an action. More...
#include <undo_action.hpp>
Public Member Functions | |
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 28 of file undo_action.hpp.
|
inline |
Default constructor.
This is the only way to get nullptr view_info.
Definition at line 32 of file undo_action.hpp.
|
inlinevirtual |
Definition at line 35 of file undo_action.hpp.
|
pure virtual |
Writes this into the provided config.
Reimplemented in actions::undo_action, actions::undo::move_action, actions::undo::recall_action, actions::undo::recruit_action, actions::undo::update_shroud_action, actions::undo::dismiss_action, and actions::undo::auto_shroud_action.
Definition at line 38 of file undo_action.hpp.
References get_type().
Referenced by actions::undo::auto_shroud_action::write(), actions::undo::update_shroud_action::write(), and actions::undo_action::write().