Cooldown decorator node. 更多...
#include <BTDecorator_KeepInCone.h>
类 UBTDecorator_KeepInCone 继承关系图:Protected 成员函数 | |
| virtual void | OnBecomeRelevant (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) override |
| 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 | TickNode (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, float DeltaSeconds) override |
| tick function this function should be considered as const (don't modify state of object) if node is not instanced! | |
Protected 成员函数 继承自 UBTDecorator | |
| 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 属性 继承自 UBTDecorator | |
| 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 | |
Cooldown decorator node.
A decorator node that bases its condition on whether the observed position is still inside a cone. The cone's direction is calculated when the node first becomes relevant.