![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
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 |
MoveNodeCommand - Command to move a node's position.
Definition at line 137 of file BPCommandSystem.h.
| 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.
|
overridevirtual |
Implements Olympe::Blueprint::EditorCommand.
Definition at line 286 of file BPCommandSystem.cpp.
References Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_GraphId, m_NewX, m_NewY, m_NodeId, and Olympe::GraphNode::posX.
Here is the call graph for this function:
|
overridevirtual |
Implements Olympe::Blueprint::EditorCommand.
Definition at line 322 of file BPCommandSystem.cpp.
References m_NodeId.
|
overridevirtual |
Implements Olympe::Blueprint::EditorCommand.
Definition at line 304 of file BPCommandSystem.cpp.
References Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_GraphId, m_NodeId, m_OldX, m_OldY, and Olympe::GraphNode::posX.
Here is the call graph for this function:
|
private |
Definition at line 148 of file BPCommandSystem.h.
|
private |
Definition at line 151 of file BPCommandSystem.h.
Referenced by Execute().
|
private |
Definition at line 151 of file BPCommandSystem.h.
Referenced by Execute().
|
private |
Definition at line 149 of file BPCommandSystem.h.
Referenced by Execute(), GetDescription(), and Undo().
|
private |
Definition at line 150 of file BPCommandSystem.h.
Referenced by Undo().
|
private |
Definition at line 150 of file BPCommandSystem.h.
Referenced by Undo().