Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Olympe::ICommand Interface Referenceabstract

Abstract base for all reversible editor commands. More...

#include <UndoRedoStack.h>

+ Inheritance diagram for Olympe::ICommand:

Public Member Functions

virtual ~ICommand ()=default
 
virtual void Execute (TaskGraphTemplate &graph)=0
 Applies the command to the graph.
 
virtual void Undo (TaskGraphTemplate &graph)=0
 Reverses the command on the graph.
 
virtual std::string GetDescription () const =0
 Returns a short human-readable description (e.g.
 

Detailed Description

Abstract base for all reversible editor commands.

Definition at line 34 of file UndoRedoStack.h.

Constructor & Destructor Documentation

◆ ~ICommand()

virtual Olympe::ICommand::~ICommand ( )
virtualdefault

Member Function Documentation

◆ Execute()

virtual void Olympe::ICommand::Execute ( TaskGraphTemplate graph)
pure virtual

◆ GetDescription()

virtual std::string Olympe::ICommand::GetDescription ( ) const
pure virtual

◆ Undo()

virtual void Olympe::ICommand::Undo ( TaskGraphTemplate graph)
pure virtual

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