![]() |
Ember
|
Abstract factory interface for creating behavior tree implementations. More...
#include <ITreeFactory.h>
Public Member Functions | |
| virtual | ~ITreeFactory ()=default |
| virtual std::shared_ptr< ITreeStructure > | CreateTree (const String &name="New Tree")=0 |
| Create a new empty behavior tree. | |
| virtual std::shared_ptr< ITreeNode > | CreateNode (const String &name, ITreeNode::NodeType type)=0 |
| Create a new node. | |
| virtual std::shared_ptr< ITreeStructure > | CreateSampleTree ()=0 |
| Create a sample behavior tree for testing. | |
| virtual String | GetFactoryName () const =0 |
| Get the name of this factory implementation. | |
| virtual String | GetFactoryVersion () const =0 |
| Get the version of this factory implementation. | |
| virtual bool | SupportsFeature (const String &feature_name) const =0 |
| Check if this factory supports a specific feature. | |
Abstract factory interface for creating behavior tree implementations.
This interface allows the system to create different behavior tree implementations (current implementation, BehaviorTree.CPP, etc.) while maintaining the same abstract interface for the visualization system.
Definition at line 16 of file ITreeFactory.h.
|
virtualdefault |
|
pure virtual |
Create a new node.
| name | Name of the node |
| type | Type of the node |
Implemented in EmberCore::DefaultTreeFactory.
|
pure virtual |
Create a sample behavior tree for testing.
Implemented in EmberCore::DefaultTreeFactory.
|
pure virtual |
Create a new empty behavior tree.
| name | Name of the tree |
Implemented in EmberCore::DefaultTreeFactory.
|
pure virtual |
Get the name of this factory implementation.
Implemented in EmberCore::DefaultTreeFactory.
|
pure virtual |
Get the version of this factory implementation.
Implemented in EmberCore::DefaultTreeFactory.
|
pure virtual |
Check if this factory supports a specific feature.
| feature_name | Name of the feature to check |
Implemented in EmberCore::DefaultTreeFactory.