engine
 
载入中...
搜索中...
未找到
Protected 成员函数 | Protected 属性 | 所有成员列表
UBTService_BlueprintBase类 参考

Base class for blueprint based service nodes. 更多...

#include <BTService_BlueprintBase.h>

+ 类 UBTService_BlueprintBase 继承关系图:

Protected 成员函数

bool IsServiceActive () const
 check if service is currently being active
 
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 OnCeaseRelevant (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) override
 called when auxiliary node becomes inactive this function should be considered as const (don't modify state of object) if node is not instanced!
 
virtual void OnSearchStart (FBehaviorTreeSearchData &SearchData) override
 called when search enters underlying branch this function should be considered as const (don't modify state of object) if node is not instanced!
 
void ReceiveActivation (AActor *OwnerActor)
 service became active @Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise
 
void ReceiveActivationAI (AAIController *OwnerController, APawn *ControlledPawn)
 Alternative AI version of ReceiveActivation function. 更多...
 
void ReceiveDeactivation (AActor *OwnerActor)
 service became inactive @Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise
 
void ReceiveDeactivationAI (AAIController *OwnerController, APawn *ControlledPawn)
 Alternative AI version of ReceiveDeactivation function. 更多...
 
void ReceiveSearchStart (AActor *OwnerActor)
 task search enters branch of tree @Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise
 
void ReceiveSearchStartAI (AAIController *OwnerController, APawn *ControlledPawn)
 Alternative AI version of ReceiveSearchStart function. 更多...
 
void ReceiveTick (AActor *OwnerActor, float DeltaSeconds)
 tick function @Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise
 
void ReceiveTickAI (AAIController *OwnerController, APawn *ControlledPawn, float DeltaSeconds)
 Alternative AI version of ReceiveTick function. 更多...
 
virtual void TickNode (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, float DeltaSeconds) override
 update next tick interval this function should be considered as const (don't modify state of object) if node is not instanced!
 
- Protected 成员函数 继承自 UBTService
virtual void OnSearchStart (FBehaviorTreeSearchData &SearchData)
 called when search enters underlying branch this function should be considered as const (don't modify state of object) if node is not instanced!
 
virtual void ScheduleNextTick (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory)
 set next tick time
 
virtual void TickNode (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, float DeltaSeconds) override
 update next tick interval 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 属性

AActor * ActorOwner
 Cached actor owner of BehaviorTreeComponent.
 
AAIController * AIOwner
 Cached AIController owner of BehaviorTreeComponent.
 
uint32 bShowEventDetails: 1
 show detailed information about implemented events
 
uint32 bShowPropertyDetails: 1
 show detailed information about properties
 
TArray< FProperty * > PropertyData
 properties with runtime values, stored only in class default object
 
uint32 ReceiveActivationImplementations: 2
 set if ReceiveActivation is implemented by blueprint
 
uint32 ReceiveDeactivationImplementations: 2
 set if ReceiveDeactivation is implemented by blueprint
 
uint32 ReceiveSearchStartImplementations: 2
 set if ReceiveSearchStart is implemented by blueprint
 
uint32 ReceiveTickImplementations: 2
 set if ReceiveTick is implemented by blueprint
 
- Protected 属性 继承自 UBTService
uint32 bCallTickOnSearchStart: 1
 call Tick event when task search enters this node (SearchStart will be called as well)
 
uint32 bNotifyOnSearch: 1
 if set, service will be notified about search entering underlying branch
 
uint32 bRestartTimerOnEachActivation: 1
 if set, next tick time will be always reset to service's interval when node is activated
 
float Interval
 defines time span between subsequent ticks of the service
 
float RandomDeviation
 adds random range to service's Interval
 
- 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
 

详细描述

Base class for blueprint based service nodes.

Do NOT use it for creating native c++ classes!

When service receives Deactivation event, all latent actions associated this instance are being removed. This prevents from resuming activity started by Activation, but does not handle external events. Please use them safely (unregister at abort) and call IsServiceActive() when in doubt.

成员函数说明

◆ ReceiveActivationAI()

void UBTService_BlueprintBase::ReceiveActivationAI ( AAIController *  OwnerController,
APawn *  ControlledPawn 
)
protected

Alternative AI version of ReceiveActivation function.

参见
ReceiveActivation for more details @Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise

◆ ReceiveDeactivationAI()

void UBTService_BlueprintBase::ReceiveDeactivationAI ( AAIController *  OwnerController,
APawn *  ControlledPawn 
)
protected

Alternative AI version of ReceiveDeactivation function.

参见
ReceiveDeactivation for more details @Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise

◆ ReceiveSearchStartAI()

void UBTService_BlueprintBase::ReceiveSearchStartAI ( AAIController *  OwnerController,
APawn *  ControlledPawn 
)
protected

Alternative AI version of ReceiveSearchStart function.

参见
ReceiveSearchStart for more details @Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise

◆ ReceiveTickAI()

void UBTService_BlueprintBase::ReceiveTickAI ( AAIController *  OwnerController,
APawn *  ControlledPawn,
float  DeltaSeconds 
)
protected

Alternative AI version of ReceiveTick function.

参见
ReceiveTick for more details @Note that if both generic and AI event versions are implemented only the more suitable one will be called, meaning the AI version if called for AI, generic one otherwise

该类的文档由以下文件生成: