Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Olympe::NodeGraph::Commands::DeleteLinkCommand Class Reference

Commande pour supprimer un lien. More...

#include <DeleteLinkCommand.h>

+ Inheritance diagram for Olympe::NodeGraph::Commands::DeleteLinkCommand:
+ Collaboration diagram for Olympe::NodeGraph::Commands::DeleteLinkCommand:

Public Member Functions

 DeleteLinkCommand (GraphDocument *document, uint32_t linkId)
 Constructeur.
 
bool Execute () override
 Execute the command.
 
bool Undo () override
 Undo the command.
 
std::string GetDescription () const override
 Get description of the command.
 
- Public Member Functions inherited from Olympe::NodeGraph::ICommand
virtual ~ICommand ()=default
 

Private Attributes

GraphDocumentm_document = nullptr
 
uint32_t m_linkId = 0
 
LinkData m_deletedLink
 
bool m_wasExecuted = false
 

Detailed Description

Commande pour supprimer un lien.

Definition at line 24 of file DeleteLinkCommand.h.

Constructor & Destructor Documentation

◆ DeleteLinkCommand()

Olympe::NodeGraph::Commands::DeleteLinkCommand::DeleteLinkCommand ( GraphDocument document,
uint32_t  linkId 
)

Constructeur.

Parameters
documentGraphDocument cible
linkIdID du lien à supprimer

Member Function Documentation

◆ Execute()

bool Olympe::NodeGraph::Commands::DeleteLinkCommand::Execute ( )
overridevirtual

Execute the command.

Implements Olympe::NodeGraph::ICommand.

◆ GetDescription()

std::string Olympe::NodeGraph::Commands::DeleteLinkCommand::GetDescription ( ) const
overridevirtual

Get description of the command.

Implements Olympe::NodeGraph::ICommand.

◆ Undo()

bool Olympe::NodeGraph::Commands::DeleteLinkCommand::Undo ( )
overridevirtual

Undo the command.

Implements Olympe::NodeGraph::ICommand.

Member Data Documentation

◆ m_deletedLink

LinkData Olympe::NodeGraph::Commands::DeleteLinkCommand::m_deletedLink
private

Definition at line 41 of file DeleteLinkCommand.h.

◆ m_document

GraphDocument* Olympe::NodeGraph::Commands::DeleteLinkCommand::m_document = nullptr
private

Definition at line 39 of file DeleteLinkCommand.h.

◆ m_linkId

uint32_t Olympe::NodeGraph::Commands::DeleteLinkCommand::m_linkId = 0
private

Definition at line 40 of file DeleteLinkCommand.h.

◆ m_wasExecuted

bool Olympe::NodeGraph::Commands::DeleteLinkCommand::m_wasExecuted = false
private

Definition at line 42 of file DeleteLinkCommand.h.


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