Decorators are supporting nodes placed on parent-child connection, that receive notification about execution flow and can be ticked 更多...
#include <BTDecorator.h>
类 UBTDecorator 继承关系图:Protected 成员函数 | |
| virtual bool | CalculateRawConditionValue (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) const |
| calculates raw, core value of decorator's condition. 更多... | |
| void | ConditionalFlowAbort (UBehaviorTreeComponent &OwnerComp, EBTDecoratorAbortRequest RequestMode) const |
| more "flow aware" version of calling RequestExecution(this) on owning behavior tree component should be used in external events that may change result of CalculateRawConditionValue | |
| virtual void | OnNodeActivation (FBehaviorTreeSearchData &SearchData) |
| called when underlying node is activated this function should be considered as const (don't modify state of object) if node is not instanced! | |
| virtual void | OnNodeDeactivation (FBehaviorTreeSearchData &SearchData, EBTNodeResult::Type NodeResult) |
| called when underlying node has finished this function should be considered as const (don't modify state of object) if node is not instanced! | |
| virtual void | OnNodeProcessed (FBehaviorTreeSearchData &SearchData, EBTNodeResult::Type &NodeResult) |
| called when underlying node was processed (deactivated or failed to activate) this function should be considered as const (don't modify state of object) if node is not instanced! | |
Protected 成员函数 继承自 UBTAuxiliaryNode | |
| float | GetNextTickRemainingTime (uint8 *NodeMemory) const |
| gets remaining time for next tick | |
| virtual void | OnBecomeRelevant (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) |
| called when auxiliary node becomes active this function should be considered as const (don't modify state of object) if node is not instanced! | |
| virtual void | OnCeaseRelevant (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) |
| called when auxiliary node becomes inactive this function should be considered as const (don't modify state of object) if node is not instanced! | |
| void | SetNextTickTime (uint8 *NodeMemory, float RemainingTime) const |
| sets next tick time | |
| virtual void | TickNode (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, float DeltaSeconds) |
| tick function this function should be considered as const (don't modify state of object) if node is not instanced! | |
Protected 属性 | |
| uint32 | bAllowAbortChildNodes: 1 |
| if set, FlowAbortMode can be set to Self and Both | |
| uint32 | bAllowAbortLowerPri: 1 |
| if set, FlowAbortMode can be set to LowerPriority and Both | |
| uint32 | bAllowAbortNone: 1 |
| if set, FlowAbortMode can be set to None | |
| uint32 | bNotifyActivation: 1 |
| if set, OnNodeActivation will be used | |
| uint32 | bNotifyDeactivation: 1 |
| if set, OnNodeDeactivation will be used | |
| uint32 | bNotifyProcessed: 1 |
| if set, OnNodeProcessed will be used | |
| uint32 | bShowInverseConditionDesc: 1 |
| if set, static description will include default description of inversed condition | |
| TEnumAsByte< EBTFlowAbortMode::Type > | FlowAbortMode |
| flow controller settings | |
Protected 属性 继承自 UBTAuxiliaryNode | |
| uint8 | bNotifyBecomeRelevant:1 |
| if set, OnBecomeRelevant will be used | |
| uint8 | bNotifyCeaseRelevant:1 |
| if set, OnCeaseRelevant will be used | |
| uint8 | bNotifyTick: 1 |
| if set, OnTick will be used | |
| uint8 | bTickIntervals: 1 |
| if set, conditional tick will use remaining time form node's memory | |
| uint8 | ChildIndex |
| child index in parent node | |
Decorators are supporting nodes placed on parent-child connection, that receive notification about execution flow and can be ticked
Because some of them can be instanced for specific AI, following virtual functions are not marked as const:
If your node is not being instanced (default behavior), DO NOT change any properties of object within those functions! Template nodes are shared across all behavior tree components using the same tree asset and must store their runtime properties in provided NodeMemory block (allocation size determined by GetInstanceMemorySize() )
|
protectedvirtual |
calculates raw, core value of decorator's condition.
Should not include calling IsInversed
被 UBTDecorator_CompareBBEntries, UBTDecorator_ConeCheck, UBTDecorator_DoesPathExist , 以及 UBTDecorator_BlueprintBase 重载.