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

MoveNodeCommand - Command to move a node's position. More...

#include <BPCommandSystem.h>

+ Inheritance diagram for Olympe::Blueprint::MoveNodeCommand:
+ Collaboration diagram for Olympe::Blueprint::MoveNodeCommand:

Public Member Functions

 MoveNodeCommand (const std::string &graphId, int nodeId, float oldX, float oldY, float newX, float newY)
 
void Execute () override
 
void Undo () override
 
std::string GetDescription () const override
 
- Public Member Functions inherited from Olympe::Blueprint::EditorCommand
virtual ~EditorCommand ()=default
 

Private Attributes

std::string m_GraphId
 
int m_NodeId
 
float m_OldX
 
float m_OldY
 
float m_NewX
 
float m_NewY
 

Detailed Description

MoveNodeCommand - Command to move a node's position.

Definition at line 137 of file BPCommandSystem.h.

Constructor & Destructor Documentation

◆ MoveNodeCommand()

Olympe::Blueprint::MoveNodeCommand::MoveNodeCommand ( const std::string &  graphId,
int  nodeId,
float  oldX,
float  oldY,
float  newX,
float  newY 
)

Definition at line 275 of file BPCommandSystem.cpp.

Member Function Documentation

◆ Execute()

void Olympe::Blueprint::MoveNodeCommand::Execute ( )
overridevirtual

◆ GetDescription()

std::string Olympe::Blueprint::MoveNodeCommand::GetDescription ( ) const
overridevirtual

Implements Olympe::Blueprint::EditorCommand.

Definition at line 322 of file BPCommandSystem.cpp.

References m_NodeId.

◆ Undo()

void Olympe::Blueprint::MoveNodeCommand::Undo ( )
overridevirtual

Member Data Documentation

◆ m_GraphId

std::string Olympe::Blueprint::MoveNodeCommand::m_GraphId
private

Definition at line 148 of file BPCommandSystem.h.

Referenced by Execute(), and Undo().

◆ m_NewX

float Olympe::Blueprint::MoveNodeCommand::m_NewX
private

Definition at line 151 of file BPCommandSystem.h.

Referenced by Execute().

◆ m_NewY

float Olympe::Blueprint::MoveNodeCommand::m_NewY
private

Definition at line 151 of file BPCommandSystem.h.

Referenced by Execute().

◆ m_NodeId

int Olympe::Blueprint::MoveNodeCommand::m_NodeId
private

Definition at line 149 of file BPCommandSystem.h.

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

◆ m_OldX

float Olympe::Blueprint::MoveNodeCommand::m_OldX
private

Definition at line 150 of file BPCommandSystem.h.

Referenced by Undo().

◆ m_OldY

float Olympe::Blueprint::MoveNodeCommand::m_OldY
private

Definition at line 150 of file BPCommandSystem.h.

Referenced by Undo().


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