The Battle for Wesnoth  1.19.7+dev
Public Member Functions | List of all members
actions::undo_action Struct Referenceabstract

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

#include <undo_action.hpp>

Inheritance diagram for actions::undo_action:

Public Member Functions

 undo_action ()
 
virtual ~undo_action ()
 
virtual bool undo (int side)=0
 Undoes this action. More...
 
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 step gets its own derived type.

Definition at line 79 of file undo_action.hpp.

Constructor & Destructor Documentation

◆ undo_action()

actions::undo_action::undo_action ( )
inline

Definition at line 81 of file undo_action.hpp.

◆ ~undo_action()

virtual actions::undo_action::~undo_action ( )
inlinevirtual

Definition at line 83 of file undo_action.hpp.

Member Function Documentation

◆ get_type()

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

◆ undo()

virtual bool actions::undo_action::undo ( int  side)
pure virtual

◆ write()

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

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