A child wrapper object that contains either a Task or Composite gene, and its decorators. More...
#include <BTChildContainerGene.h>
Public Member Functions | |
bool | IsALeaf () |
const UBTTaskNodeGene * | GetTaskChild () const |
UBTTaskNodeGene * | GetTaskChild () |
const UBTCompositeNodeGene * | GetCompositeChild () const |
UBTCompositeNodeGene * | GetCompositeChild () |
bool | SetChild (UBTTaskNodeGene *gene) |
bool | SetChild (UBTCompositeNodeGene *gene) |
void | ReplaceChild (UBTTaskNodeGene *gene) |
void | ReplaceChild (UBTCompositeNodeGene *gene) |
int32 | RemoveDecorator (UBTDecoratorGene *decorator) |
int32 | InsertDecorator (UBTDecoratorGene *decorator, int32 idx) |
int32 | AddDecorator (UBTDecoratorGene *decorator) |
int | GetNumDecorators () const |
UBTDecoratorGene * | GetDecorator (int idx) const |
UBTChildContainerGene * | Duplicate (UObject *other) |
void | SetServiceInjector (UServiceInjector *serviceInjector) |
A child wrapper object that contains either a Task or Composite gene, and its decorators.
This wrapper object is stored inside Composite nodes, to wrap the children of that node.
We need this wrapper because each child might be a Composite node gene or a Task node gene.
You can determine whether this contains a Task node or a Composite node by calling the IsALeaf() function. If it returns true, the child is a Task node (a leaf). Otherwise, it is a composite node.
Additionally, you can retrieve the decorators on this child.