EvolvingBehavior  0.2.0
 
Loading...
Searching...
No Matches
UBTChildContainerGene Class Reference

A child wrapper object that contains either a Task or Composite gene, and its decorators. More...

#include <BTChildContainerGene.h>

Inheritance diagram for UBTChildContainerGene:

Public Member Functions

bool IsALeaf ()
 
const UBTTaskNodeGeneGetTaskChild () const
 
UBTTaskNodeGeneGetTaskChild ()
 
const UBTCompositeNodeGeneGetCompositeChild () const
 
UBTCompositeNodeGeneGetCompositeChild ()
 
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
 
UBTDecoratorGeneGetDecorator (int idx) const
 
UBTChildContainerGeneDuplicate (UObject *other)
 
void SetServiceInjector (UServiceInjector *serviceInjector)
 

Detailed Description

A child wrapper object that contains either a Task or Composite gene, and its decorators.

Author
npc
Date
12/01/17

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.


The documentation for this class was generated from the following files:
  • Source/EvolvingBehavior/Public/Representation/BTChildContainerGene.h
  • Source/EvolvingBehavior/Private/Representation/BTChildContainerGene.cpp