The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
actions::undo_action_base Struct Referenceabstract

Records information to be able to undo an action. More...

#include <undo_action.hpp>

Inheritance diagram for actions::undo_action_base:
Inheritance graph

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
 

Detailed Description

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.

Constructor & Destructor Documentation

actions::undo_action_base::undo_action_base ( )
inline

Default constructor.

This is the only way to get nullptr view_info.

Definition at line 32 of file undo_action.hpp.

virtual actions::undo_action_base::~undo_action_base ( )
inlinevirtual

Definition at line 35 of file undo_action.hpp.

Member Function Documentation

virtual const char* actions::undo_action_base::get_type ( ) const
pure virtual
virtual void actions::undo_action_base::write ( config cfg) const
inlinevirtual

The documentation for this struct was generated from the following file: