![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <BehaviorTree.h>
Public Member Functions | |
| BTNode * | GetNode (uint32_t nodeId) |
| const BTNode * | GetNode (uint32_t nodeId) const |
| std::vector< BTValidationMessage > | ValidateTreeFull () const |
| bool | DetectCycle (uint32_t startNodeId) const |
| uint32_t | AddNode (BTNodeType type, const std::string &name, const Vector &position) |
| bool | RemoveNode (uint32_t nodeId) |
| bool | ConnectNodes (uint32_t parentId, uint32_t childId) |
| bool | DisconnectNodes (uint32_t parentId, uint32_t childId) |
| uint32_t | GenerateNextNodeId () const |
Public Attributes | |
| uint32_t | id = 0 |
| std::string | name |
| std::vector< BTNode > | nodes |
| uint32_t | rootNodeId = 0 |
Definition at line 202 of file BehaviorTree.h.
| uint32_t BehaviorTreeAsset::AddNode | ( | BTNodeType | type, |
| const std::string & | name, | ||
| const Vector & | position | ||
| ) |
Definition at line 1129 of file BehaviorTree.cpp.
References Action, Condition, GenerateNextNodeId(), GetComponentTypeID_Static(), Idle, Inverter, name, nodes, Repeater, TargetVisible, and BTNode::type.
Referenced by Olympe::AddNodeCommand::Execute().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1208 of file BehaviorTree.cpp.
References BTNode::childIds, BTNode::decoratorChildId, GetComponentTypeID_Static(), GetNode(), Inverter, Repeater, Selector, Sequence, and BTNode::type.
Referenced by Olympe::ConnectNodesCommand::Execute(), Olympe::BehaviorTreeDebugWindow::IsConnectionValid(), and Olympe::DisconnectNodesCommand::Undo().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1058 of file BehaviorTree.cpp.
References GetComponentTypeID_Static(), GetNode(), Inverter, Repeater, and visited.
Referenced by ValidateTreeFull().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1255 of file BehaviorTree.cpp.
References BTNode::childIds, BTNode::decoratorChildId, GetComponentTypeID_Static(), and GetNode().
Referenced by Olympe::DisconnectNodesCommand::Execute(), and Olympe::ConnectNodesCommand::Undo().
Here is the call graph for this function:
Here is the caller graph for this function:| uint32_t BehaviorTreeAsset::GenerateNextNodeId | ( | ) | const |
Definition at line 1116 of file BehaviorTree.cpp.
References GetComponentTypeID_Static(), and nodes.
Referenced by AddNode().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 210 of file BehaviorTree.h.
References GetComponentTypeID_Static(), and nodes.
Referenced by ConnectNodes(), DetectCycle(), DisconnectNodes(), Olympe::EditParameterCommand::Execute(), Olympe::DeleteNodeCommand::Undo(), and Olympe::EditParameterCommand::Undo().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 220 of file BehaviorTree.h.
References GetComponentTypeID_Static(), and nodes.
Here is the call graph for this function:Definition at line 1166 of file BehaviorTree.cpp.
References GetComponentTypeID_Static(), and nodes.
Referenced by Olympe::DeleteNodeCommand::Execute(), and Olympe::AddNodeCommand::Undo().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< BTValidationMessage > BehaviorTreeAsset::ValidateTreeFull | ( | ) | const |
Definition at line 892 of file BehaviorTree.cpp.
References DetectCycle(), BTValidationMessage::Error, GetComponentTypeID_Static(), Inverter, nodes, Repeater, rootNodeId, Selector, Sequence, BTValidationMessage::severity, and BTValidationMessage::Warning.
Here is the call graph for this function:| uint32_t BehaviorTreeAsset::id = 0 |
Definition at line 204 of file BehaviorTree.h.
Referenced by Olympe::BehaviorTreeDebugWindow::HandleNodeCreation(), BehaviorTreeManager::LoadTreeFromFile(), and Olympe::BehaviorTreeDebugWindow::RenderNodeGraphPanel().
| std::string BehaviorTreeAsset::name |
Definition at line 205 of file BehaviorTree.h.
Referenced by AddNode(), Olympe::BehaviorTreeDebugWindow::CreateFromTemplate(), BehaviorTreeManager::GetTreePathFromId(), BehaviorTreeSystem::Process(), Olympe::BehaviorTreeDebugWindow::RefreshEntityList(), and BehaviorTreeManager::ReloadTree().
| std::vector<BTNode> BehaviorTreeAsset::nodes |
Definition at line 206 of file BehaviorTree.h.
Referenced by AddNode(), GenerateNextNodeId(), GetNode(), GetNode(), RemoveNode(), Olympe::DeleteNodeCommand::Undo(), and ValidateTreeFull().
| uint32_t BehaviorTreeAsset::rootNodeId = 0 |
Definition at line 207 of file BehaviorTree.h.
Referenced by BehaviorTreeSystem::Process(), and ValidateTreeFull().