![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <BehaviorTree.h>
Public Member Functions | |
| void | Push (const std::string &path) |
| Push a subgraph path onto the stack. | |
| void | Pop () |
| Pop a subgraph path from the stack. | |
| bool | Contains (const std::string &path) const |
| Check if a path is already on the stack (cycle detection) | |
| bool | IsFull () const |
| Check if maximum depth has been reached. | |
| void | Clear () |
| Clear the stack. | |
| int | GetDepth () const |
| Get current depth. | |
Public Attributes | |
| std::vector< std::string > | pathStack |
| Stack of active subgraph paths. | |
| int | depth = 0 |
| Current recursion depth. | |
Static Public Attributes | |
| static const int | MAX_DEPTH = 32 |
| Maximum recursion depth limit. | |
Definition at line 319 of file BehaviorTree.h.
|
inline |
Clear the stack.
Definition at line 361 of file BehaviorTree.h.
Check if a path is already on the stack (cycle detection)
Definition at line 344 of file BehaviorTree.h.
References GetComponentTypeID_Static(), and pathStack.
Here is the call graph for this function:
|
inline |
|
inline |
Check if maximum depth has been reached.
Definition at line 355 of file BehaviorTree.h.
|
inline |
Pop a subgraph path from the stack.
Definition at line 334 of file BehaviorTree.h.
Push a subgraph path onto the stack.
Definition at line 327 of file BehaviorTree.h.
| int SubGraphCallStack::depth = 0 |
Current recursion depth.
Definition at line 322 of file BehaviorTree.h.
Referenced by Clear(), GetDepth(), IsFull(), Pop(), and Push().
Maximum recursion depth limit.
Definition at line 324 of file BehaviorTree.h.
Referenced by Olympe::BehaviorTreeExecutor::ExecuteSubGraph(), and IsFull().
| std::vector<std::string> SubGraphCallStack::pathStack |
Stack of active subgraph paths.
Definition at line 321 of file BehaviorTree.h.
Referenced by Clear(), Contains(), Pop(), and Push().