![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
MoveNodeCommand - Command to move a node's position. More...
#include <BTEditorCommand.h>
Inheritance diagram for Olympe::MoveNodeCommand:
Collaboration diagram for Olympe::MoveNodeCommand:Public Member Functions | |
| MoveNodeCommand (BehaviorTreeAsset *tree, uint32_t nodeId, const Vector &oldPos, const Vector &newPos) | |
| void | Execute () override |
| Execute the command. | |
| void | Undo () override |
| Undo the command. | |
| std::string | GetDescription () const override |
| Get a human-readable description of the command. | |
| MoveNodeCommand (const std::string &graphId, int nodeId, float oldX, float oldY, float newX, float newY) | |
| void | Execute () override |
| Execute the command. | |
| void | Undo () override |
| Undo the command. | |
| std::string | GetDescription () const override |
| Get a human-readable description of the command. | |
Public Member Functions inherited from Olympe::BTEditorCommand | |
| virtual | ~BTEditorCommand ()=default |
Public Member Functions inherited from Olympe::EditorCommand | |
| virtual | ~EditorCommand ()=default |
Private Attributes | |
| BehaviorTreeAsset * | m_tree |
| uint32_t | m_nodeId |
| Vector | m_oldPosition |
| Vector | m_newPosition |
| 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.
Command to move a node.
Definition at line 152 of file BTEditorCommand.h.
| Olympe::MoveNodeCommand::MoveNodeCommand | ( | BehaviorTreeAsset * | tree, |
| uint32_t | nodeId, | ||
| const Vector & | oldPos, | ||
| const Vector & | newPos | ||
| ) |
Definition at line 231 of file BTEditorCommand.cpp.
| Olympe::MoveNodeCommand::MoveNodeCommand | ( | const std::string & | graphId, |
| int | nodeId, | ||
| float | oldX, | ||
| float | oldY, | ||
| float | newX, | ||
| float | newY | ||
| ) |
Definition at line 268 of file CommandSystem.cpp.
|
overridevirtual |
Execute the command.
Implements Olympe::BTEditorCommand.
Definition at line 240 of file BTEditorCommand.cpp.
References m_nodeId.
|
overridevirtual |
Execute the command.
Implements Olympe::BTEditorCommand.
|
overridevirtual |
Get a human-readable description of the command.
Implements Olympe::BTEditorCommand.
Definition at line 252 of file BTEditorCommand.cpp.
References m_nodeId.
|
overridevirtual |
Get a human-readable description of the command.
Implements Olympe::BTEditorCommand.
|
overridevirtual |
Undo the command.
Implements Olympe::BTEditorCommand.
Definition at line 247 of file BTEditorCommand.cpp.
References m_nodeId.
|
overridevirtual |
Undo the command.
Implements Olympe::BTEditorCommand.
|
private |
Definition at line 144 of file CommandSystem.h.
|
private |
Definition at line 165 of file BTEditorCommand.h.
|
private |
Definition at line 147 of file CommandSystem.h.
|
private |
Definition at line 147 of file CommandSystem.h.
|
private |
Definition at line 163 of file BTEditorCommand.h.
Referenced by Execute(), GetDescription(), and Undo().
|
private |
Definition at line 145 of file CommandSystem.h.
|
private |
Definition at line 164 of file BTEditorCommand.h.
|
private |
Definition at line 146 of file CommandSystem.h.
|
private |
Definition at line 146 of file CommandSystem.h.
|
private |
Definition at line 162 of file BTEditorCommand.h.