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

UnlinkNodesCommand - Command to remove a link between nodes. More...

#include <CommandSystem.h>

+ Inheritance diagram for Olympe::UnlinkNodesCommand:
+ Collaboration diagram for Olympe::UnlinkNodesCommand:

Public Member Functions

 UnlinkNodesCommand (const std::string &graphId, int parentId, int childId)
 
void Execute () override
 
void Undo () override
 
std::string GetDescription () const override
 
- Public Member Functions inherited from Olympe::EditorCommand
virtual ~EditorCommand ()=default
 

Private Attributes

std::string m_GraphId
 
int m_ParentId
 
int m_ChildId
 

Detailed Description

UnlinkNodesCommand - Command to remove a link between nodes.

Definition at line 171 of file CommandSystem.h.

Constructor & Destructor Documentation

◆ UnlinkNodesCommand()

Olympe::UnlinkNodesCommand::UnlinkNodesCommand ( const std::string &  graphId,
int  parentId,
int  childId 
)

Definition at line 358 of file CommandSystem.cpp.

Member Function Documentation

◆ Execute()

void Olympe::UnlinkNodesCommand::Execute ( )
overridevirtual

◆ GetDescription()

std::string Olympe::UnlinkNodesCommand::GetDescription ( ) const
overridevirtual

Implements Olympe::EditorCommand.

Definition at line 383 of file CommandSystem.cpp.

References m_ChildId, and m_ParentId.

◆ Undo()

void Olympe::UnlinkNodesCommand::Undo ( )
overridevirtual

Member Data Documentation

◆ m_ChildId

int Olympe::UnlinkNodesCommand::m_ChildId
private

Definition at line 183 of file CommandSystem.h.

Referenced by Execute(), GetDescription(), and Undo().

◆ m_GraphId

std::string Olympe::UnlinkNodesCommand::m_GraphId
private

Definition at line 181 of file CommandSystem.h.

Referenced by Execute(), and Undo().

◆ m_ParentId

int Olympe::UnlinkNodesCommand::m_ParentId
private

Definition at line 182 of file CommandSystem.h.

Referenced by Execute(), GetDescription(), and Undo().


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