![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Represents a single node in a behavior tree. More...
#include <BehaviorTree.h>
Public Member Functions | |
| std::string | GetParameterString (const std::string &key, const std::string &defaultValue="") const |
| int | GetParameterInt (const std::string &key, int defaultValue=0) const |
| float | GetParameterFloat (const std::string &key, float defaultValue=0.0f) const |
Public Attributes | |
| BTNodeType | type = BTNodeType::Action |
| Node type. | |
| uint32_t | id = 0 |
| Unique node ID within tree. | |
| std::vector< uint32_t > | childIds |
| IDs of child nodes. | |
| BTConditionType | conditionType = BTConditionType::TargetVisible |
| Condition type (enum) | |
| std::string | conditionTypeString |
| Condition type as string (for flexible conditions like CheckBlackboardValue) | |
| float | conditionParam = 0.0f |
| Generic parameter for conditions. | |
| BTActionType | actionType = BTActionType::Idle |
| Action type. | |
| float | actionParam1 = 0.0f |
| Generic parameter 1 for actions. | |
| float | actionParam2 = 0.0f |
| Generic parameter 2 for actions. | |
| uint32_t | decoratorChildId = 0 |
| int | repeatCount = 1 |
| std::string | name |
| std::map< std::string, std::string > | stringParams |
| String parameters. | |
| std::map< std::string, int > | intParams |
| Integer parameters. | |
| std::map< std::string, float > | floatParams |
| Float parameters. | |
Represents a single node in a behavior tree.
Can be a composite, decorator, condition, or action node. Stores node type, parameters, and child references.
Definition at line 133 of file BehaviorTree.h.
Definition at line 176 of file BehaviorTree.h.
References floatParams, and GetComponentTypeID_Static().
Here is the call graph for this function:Definition at line 170 of file BehaviorTree.h.
References GetComponentTypeID_Static(), and intParams.
Here is the call graph for this function:
|
inline |
Definition at line 164 of file BehaviorTree.h.
References GetComponentTypeID_Static(), and stringParams.
Here is the call graph for this function:| float BTNode::actionParam1 = 0.0f |
Generic parameter 1 for actions.
Definition at line 148 of file BehaviorTree.h.
| float BTNode::actionParam2 = 0.0f |
Generic parameter 2 for actions.
Definition at line 149 of file BehaviorTree.h.
| BTActionType BTNode::actionType = BTActionType::Idle |
Action type.
Definition at line 147 of file BehaviorTree.h.
Referenced by Olympe::BehaviorTreeDebugWindow::HandleNodeDuplication().
| std::vector<uint32_t> BTNode::childIds |
IDs of child nodes.
Definition at line 139 of file BehaviorTree.h.
Referenced by BehaviorTreeAsset::ConnectNodes(), BehaviorTreeAsset::DisconnectNodes(), and Olympe::DeleteNodeCommand::Undo().
| float BTNode::conditionParam = 0.0f |
Generic parameter for conditions.
Definition at line 144 of file BehaviorTree.h.
| BTConditionType BTNode::conditionType = BTConditionType::TargetVisible |
Condition type (enum)
Definition at line 142 of file BehaviorTree.h.
Referenced by Olympe::BehaviorTreeDebugWindow::CreateFromTemplate().
| std::string BTNode::conditionTypeString |
Condition type as string (for flexible conditions like CheckBlackboardValue)
Definition at line 143 of file BehaviorTree.h.
| uint32_t BTNode::decoratorChildId = 0 |
Definition at line 152 of file BehaviorTree.h.
Referenced by BehaviorTreeAsset::ConnectNodes(), BehaviorTreeAsset::DisconnectNodes(), Olympe::BehaviorTreeDebugWindow::IsConnectionValid(), and Olympe::DeleteNodeCommand::Undo().
| std::map<std::string, float> BTNode::floatParams |
| uint32_t BTNode::id = 0 |
Unique node ID within tree.
Definition at line 136 of file BehaviorTree.h.
Referenced by Olympe::BehaviorTreeDebugWindow::CreateFromTemplate(), and BehaviorTreeManager::LoadTreeFromFile().
| std::map<std::string, int> BTNode::intParams |
| std::string BTNode::name |
Definition at line 156 of file BehaviorTree.h.
Referenced by Olympe::BehaviorTreeDebugWindow::CreateFromTemplate(), Olympe::BehaviorTreeDebugWindow::HandleNodeDuplication(), Olympe::BehaviorTreeDebugWindow::SaveEditedTree(), and BehaviorTreeManager::ValidateTree().
| int BTNode::repeatCount = 1 |
Definition at line 153 of file BehaviorTree.h.
| std::map<std::string, std::string> BTNode::stringParams |
String parameters.
Definition at line 159 of file BehaviorTree.h.
Referenced by Olympe::EditParameterCommand::Execute(), GetParameterString(), and Olympe::EditParameterCommand::Undo().
| BTNodeType BTNode::type = BTNodeType::Action |
Node type.
Definition at line 135 of file BehaviorTree.h.
Referenced by BehaviorTreeAsset::AddNode(), BehaviorTreeAsset::ConnectNodes(), Olympe::BehaviorTreeDebugWindow::CreateFromTemplate(), and Olympe::BehaviorTreeDebugWindow::IsConnectionValid().