![]() |
Ember
|
Factory implementation for the default Node/BehaviorTree implementation. More...
#include <DefaultTreeFactory.h>
Public Member Functions | |
| DefaultTreeFactory ()=default | |
| virtual | ~DefaultTreeFactory ()=default |
| std::shared_ptr< ITreeStructure > | CreateTree (const EmberCore::String &name="New Tree") override |
| Create a new empty behavior tree. | |
| std::shared_ptr< ITreeNode > | CreateNode (const EmberCore::String &name, ITreeNode::NodeType type) override |
| Create a new node. | |
| std::shared_ptr< ITreeStructure > | CreateSampleTree () override |
| Create a sample behavior tree for testing. | |
| EmberCore::String | GetFactoryName () const override |
| Get the name of this factory implementation. | |
| EmberCore::String | GetFactoryVersion () const override |
| Get the version of this factory implementation. | |
| bool | SupportsFeature (const EmberCore::String &feature_name) const override |
| Check if this factory supports a specific feature. | |
| Public Member Functions inherited from EmberCore::ITreeFactory | |
| virtual | ~ITreeFactory ()=default |
Private Member Functions | |
| Node::Type | ConvertNodeType (ITreeNode::NodeType type) const |
| ITreeNode::NodeType | ConvertNodeType (Node::Type type) const |
Factory implementation for the default Node/BehaviorTree implementation.
This factory creates trees and nodes using the default implementation and wraps them with adapters to work with the abstract interfaces.
Definition at line 17 of file DefaultTreeFactory.h.
|
default |
|
virtualdefault |
|
private |
Definition at line 69 of file DefaultTreeFactory.cpp.
|
private |
Definition at line 84 of file DefaultTreeFactory.cpp.
|
overridevirtual |
Create a new node.
| name | Name of the node |
| type | Type of the node |
Implements EmberCore::ITreeFactory.
Definition at line 20 of file DefaultTreeFactory.cpp.
|
overridevirtual |
Create a sample behavior tree for testing.
Implements EmberCore::ITreeFactory.
Definition at line 54 of file DefaultTreeFactory.cpp.
|
overridevirtual |
Create a new empty behavior tree.
| name | Name of the tree |
Implements EmberCore::ITreeFactory.
Definition at line 8 of file DefaultTreeFactory.cpp.
|
inlineoverridevirtual |
Get the name of this factory implementation.
Implements EmberCore::ITreeFactory.
Definition at line 27 of file DefaultTreeFactory.h.
|
inlineoverridevirtual |
Get the version of this factory implementation.
Implements EmberCore::ITreeFactory.
Definition at line 28 of file DefaultTreeFactory.h.
|
inlineoverridevirtual |
Check if this factory supports a specific feature.
| feature_name | Name of the feature to check |
Implements EmberCore::ITreeFactory.
Definition at line 30 of file DefaultTreeFactory.h.