Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Olympe::NodeGraphShared::BehaviorTreeAdapter Class Reference

#include <BehaviorTreeAdapter.h>

+ Collaboration diagram for Olympe::NodeGraphShared::BehaviorTreeAdapter:

Public Member Functions

 BehaviorTreeAdapter (const ::BehaviorTreeAsset *tree, BTGraphLayoutEngine *layoutEngine)
 
std::vector< BTNodeLayoutComputeLayout (float nodeSpacingX, float nodeSpacingY, float zoomFactor)
 
bool UpdateNodePosition (uint32_t nodeId, float x, float y)
 
const BTNodeLayoutGetNodeLayout (uint32_t nodeId) const
 

Private Attributes

const ::BehaviorTreeAssetm_tree
 
BTGraphLayoutEnginem_layoutEngine
 

Detailed Description

Definition at line 11 of file BehaviorTreeAdapter.h.

Constructor & Destructor Documentation

◆ BehaviorTreeAdapter()

Olympe::NodeGraphShared::BehaviorTreeAdapter::BehaviorTreeAdapter ( const ::BehaviorTreeAsset tree,
BTGraphLayoutEngine layoutEngine 
)
inline

Definition at line 14 of file BehaviorTreeAdapter.h.

Member Function Documentation

◆ ComputeLayout()

std::vector< BTNodeLayout > Olympe::NodeGraphShared::BehaviorTreeAdapter::ComputeLayout ( float  nodeSpacingX,
float  nodeSpacingY,
float  zoomFactor 
)
inline

Definition at line 17 of file BehaviorTreeAdapter.h.

References Olympe::BTGraphLayoutEngine::ComputeLayout(), m_layoutEngine, and m_tree.

+ Here is the call graph for this function:

◆ GetNodeLayout()

const BTNodeLayout * Olympe::NodeGraphShared::BehaviorTreeAdapter::GetNodeLayout ( uint32_t  nodeId) const
inline

Definition at line 30 of file BehaviorTreeAdapter.h.

References Olympe::BTGraphLayoutEngine::GetNodeLayout(), and m_layoutEngine.

+ Here is the call graph for this function:

◆ UpdateNodePosition()

bool Olympe::NodeGraphShared::BehaviorTreeAdapter::UpdateNodePosition ( uint32_t  nodeId,
float  x,
float  y 
)
inline

Definition at line 24 of file BehaviorTreeAdapter.h.

References m_layoutEngine, and Olympe::BTGraphLayoutEngine::UpdateNodePosition().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_layoutEngine

BTGraphLayoutEngine* Olympe::NodeGraphShared::BehaviorTreeAdapter::m_layoutEngine
private

Definition at line 38 of file BehaviorTreeAdapter.h.

Referenced by ComputeLayout(), GetNodeLayout(), and UpdateNodePosition().

◆ m_tree

const ::BehaviorTreeAsset* Olympe::NodeGraphShared::BehaviorTreeAdapter::m_tree
private

Definition at line 37 of file BehaviorTreeAdapter.h.

Referenced by ComputeLayout().


The documentation for this class was generated from the following file: