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