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

EditNodeCommand - Command to edit node properties (name, type-specific fields) More...

#include <CommandSystem.h>

+ Inheritance diagram for Olympe::EditNodeCommand:
+ Collaboration diagram for Olympe::EditNodeCommand:

Public Member Functions

 EditNodeCommand (const std::string &graphId, int nodeId, const std::string &oldName, const std::string &newName, const std::string &oldSubtype, const std::string &newSubtype)
 
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_NodeId
 
std::string m_OldName
 
std::string m_NewName
 
std::string m_OldSubtype
 
std::string m_NewSubtype
 

Detailed Description

EditNodeCommand - Command to edit node properties (name, type-specific fields)

Definition at line 231 of file CommandSystem.h.

Constructor & Destructor Documentation

◆ EditNodeCommand()

Olympe::EditNodeCommand::EditNodeCommand ( const std::string &  graphId,
int  nodeId,
const std::string &  oldName,
const std::string &  newName,
const std::string &  oldSubtype,
const std::string &  newSubtype 
)

Definition at line 504 of file CommandSystem.cpp.

Member Function Documentation

◆ Execute()

void Olympe::EditNodeCommand::Execute ( )
overridevirtual

◆ GetDescription()

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

Implements Olympe::EditorCommand.

Definition at line 574 of file CommandSystem.cpp.

References m_NodeId.

◆ Undo()

void Olympe::EditNodeCommand::Undo ( )
overridevirtual

Member Data Documentation

◆ m_GraphId

std::string Olympe::EditNodeCommand::m_GraphId
private

Definition at line 243 of file CommandSystem.h.

Referenced by Execute(), and Undo().

◆ m_NewName

std::string Olympe::EditNodeCommand::m_NewName
private

Definition at line 246 of file CommandSystem.h.

Referenced by Execute().

◆ m_NewSubtype

std::string Olympe::EditNodeCommand::m_NewSubtype
private

Definition at line 248 of file CommandSystem.h.

Referenced by Execute().

◆ m_NodeId

int Olympe::EditNodeCommand::m_NodeId
private

Definition at line 244 of file CommandSystem.h.

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

◆ m_OldName

std::string Olympe::EditNodeCommand::m_OldName
private

Definition at line 245 of file CommandSystem.h.

Referenced by Undo().

◆ m_OldSubtype

std::string Olympe::EditNodeCommand::m_OldSubtype
private

Definition at line 247 of file CommandSystem.h.

Referenced by Undo().


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