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::CommandAdapter Class Reference

#include <CommandAdapter.h>

+ Collaboration diagram for Olympe::NodeGraphShared::CommandAdapter:

Public Member Functions

 CommandAdapter (BTCommandStack *stack, BehaviorTreeAsset *tree)
 
uint32_t AddNode (BTNodeType type, const std::string &name, const Vector &pos)
 
void DeleteNode (uint32_t nodeId)
 
void ConnectNodes (uint32_t parentId, uint32_t childId)
 
void DisconnectNodes (uint32_t parentId, uint32_t childId)
 
void MoveNode (uint32_t nodeId, const Vector &oldPos, const Vector &newPos)
 

Private Attributes

BTCommandStackm_stack
 
BehaviorTreeAssetm_tree
 

Detailed Description

Definition at line 13 of file CommandAdapter.h.

Constructor & Destructor Documentation

◆ CommandAdapter()

Olympe::NodeGraphShared::CommandAdapter::CommandAdapter ( BTCommandStack stack,
BehaviorTreeAsset tree 
)
inline

Definition at line 16 of file CommandAdapter.h.

Member Function Documentation

◆ AddNode()

uint32_t Olympe::NodeGraphShared::CommandAdapter::AddNode ( BTNodeType  type,
const std::string &  name,
const Vector pos 
)
inline

Definition at line 19 of file CommandAdapter.h.

References Olympe::BTCommandStack::Execute(), GetComponentTypeID_Static(), m_stack, m_tree, and BehaviorTreeAsset::nodes.

+ Here is the call graph for this function:

◆ ConnectNodes()

void Olympe::NodeGraphShared::CommandAdapter::ConnectNodes ( uint32_t  parentId,
uint32_t  childId 
)
inline

Definition at line 37 of file CommandAdapter.h.

References Olympe::BTCommandStack::Execute(), GetComponentTypeID_Static(), m_stack, and m_tree.

+ Here is the call graph for this function:

◆ DeleteNode()

void Olympe::NodeGraphShared::CommandAdapter::DeleteNode ( uint32_t  nodeId)
inline

Definition at line 30 of file CommandAdapter.h.

References Olympe::BTCommandStack::Execute(), GetComponentTypeID_Static(), m_stack, and m_tree.

+ Here is the call graph for this function:

◆ DisconnectNodes()

void Olympe::NodeGraphShared::CommandAdapter::DisconnectNodes ( uint32_t  parentId,
uint32_t  childId 
)
inline

Definition at line 44 of file CommandAdapter.h.

References Olympe::BTCommandStack::Execute(), GetComponentTypeID_Static(), m_stack, and m_tree.

+ Here is the call graph for this function:

◆ MoveNode()

void Olympe::NodeGraphShared::CommandAdapter::MoveNode ( uint32_t  nodeId,
const Vector oldPos,
const Vector newPos 
)
inline

Definition at line 51 of file CommandAdapter.h.

References Olympe::BTCommandStack::Execute(), GetComponentTypeID_Static(), m_stack, and m_tree.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_stack

BTCommandStack* Olympe::NodeGraphShared::CommandAdapter::m_stack
private

Definition at line 59 of file CommandAdapter.h.

Referenced by AddNode(), ConnectNodes(), DeleteNode(), DisconnectNodes(), and MoveNode().

◆ m_tree

BehaviorTreeAsset* Olympe::NodeGraphShared::CommandAdapter::m_tree
private

Definition at line 60 of file CommandAdapter.h.

Referenced by AddNode(), ConnectNodes(), DeleteNode(), DisconnectNodes(), and MoveNode().


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