![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Command to disconnect two nodes. More...
#include <BTEditorCommand.h>
Inheritance diagram for Olympe::DisconnectNodesCommand:
Collaboration diagram for Olympe::DisconnectNodesCommand:Public Member Functions | |
| DisconnectNodesCommand (BehaviorTreeAsset *tree, uint32_t parentId, uint32_t childId) | |
| 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 |
Private Attributes | |
| BehaviorTreeAsset * | m_tree |
| uint32_t | m_parentId |
| uint32_t | m_childId |
Command to disconnect two nodes.
Definition at line 191 of file BTEditorCommand.h.
| Olympe::DisconnectNodesCommand::DisconnectNodesCommand | ( | BehaviorTreeAsset * | tree, |
| uint32_t | parentId, | ||
| uint32_t | childId | ||
| ) |
Definition at line 295 of file BTEditorCommand.cpp.
|
overridevirtual |
Execute the command.
Implements Olympe::BTEditorCommand.
Definition at line 302 of file BTEditorCommand.cpp.
References BehaviorTreeAsset::DisconnectNodes(), m_childId, m_parentId, and m_tree.
Here is the call graph for this function:
|
overridevirtual |
Get a human-readable description of the command.
Implements Olympe::BTEditorCommand.
Definition at line 320 of file BTEditorCommand.cpp.
References m_childId, and m_parentId.
|
overridevirtual |
Undo the command.
Implements Olympe::BTEditorCommand.
Definition at line 311 of file BTEditorCommand.cpp.
References BehaviorTreeAsset::ConnectNodes(), m_childId, m_parentId, and m_tree.
Here is the call graph for this function:
|
private |
Definition at line 203 of file BTEditorCommand.h.
Referenced by Execute(), GetDescription(), and Undo().
|
private |
Definition at line 202 of file BTEditorCommand.h.
Referenced by Execute(), GetDescription(), and Undo().
|
private |
Definition at line 201 of file BTEditorCommand.h.