The Battle for Wesnoth  1.15.3+dev
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 (const undo_action_base &)=delete
 
undo_action_baseoperator= (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
 

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 38 of file undo_action.hpp.

Constructor & Destructor Documentation

◆ undo_action_base() [1/2]

actions::undo_action_base::undo_action_base ( const undo_action_base )
delete

◆ undo_action_base() [2/2]

actions::undo_action_base::undo_action_base ( )
inline

Default constructor.

This is the only way to get nullptr view_info.

Definition at line 45 of file undo_action.hpp.

◆ ~undo_action_base()

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

Definition at line 48 of file undo_action.hpp.

Member Function Documentation

◆ get_type()

virtual const char* actions::undo_action_base::get_type ( ) const
pure virtual

◆ operator=()

undo_action_base& actions::undo_action_base::operator= ( const undo_action_base )
delete

◆ write()

virtual void actions::undo_action_base::write ( config cfg) const
inlinevirtual

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