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

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

#include <BTTask_BlueprintBase.h>

+ 类 UBTTask_BlueprintBase 继承关系图:

Protected 成员函数

void FinishAbort ()
 aborts task execution
 
void FinishExecute (bool bSuccess)
 finishes task execution with Success or Fail result
 
bool IsTaskAborting () const
 check if task is currently being aborted
 
bool IsTaskExecuting () const
 check if task is currently being executed
 
void ReceiveAbort (AActor *OwnerActor)
 if blueprint graph contains this event, task will stay active until FinishAbort is called @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 ReceiveAbortAI (AAIController *OwnerController, APawn *ControlledPawn)
 Alternative AI version of ReceiveAbort 更多...
 
void ReceiveExecute (AActor *OwnerActor)
 entry point, task will stay active until FinishExecute is called. 更多...
 
void ReceiveExecuteAI (AAIController *OwnerController, APawn *ControlledPawn)
 Alternative AI version of ReceiveExecute 更多...
 
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 tick function. 更多...
 
void SetFinishOnMessage (FName MessageName)
 task execution will be finished (with result 'Success') after receiving specified message
 
void SetFinishOnMessageWithId (FName MessageName, int32 RequestID=-1)
 task execution will be finished (with result 'Success') after receiving specified message with indicated ID
 
virtual void TickTask (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, float DeltaSeconds) override
 ticks this task
 
- Protected 成员函数 继承自 UBTTaskNode
virtual EBTNodeResult::Type AbortTask (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory)
 aborts this task, should return Aborted or InProgress (use FinishLatentAbort() when returning InProgress) this function should be considered as const (don't modify state of object) if node is not instanced!
 
virtual void OnMessage (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, FName Message, int32 RequestID, bool bSuccess)
 message handler, default implementation will finish latent execution/abortion this function should be considered as const (don't modify state of object) if node is not instanced!
 
virtual void OnTaskFinished (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, EBTNodeResult::Type TaskResult)
 called when task execution is finished this function should be considered as const (don't modify state of object) if node is not instanced!
 
void StopWaitingForMessages (UBehaviorTreeComponent &OwnerComp) const
 unregister message observers
 
virtual void TickTask (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, float DeltaSeconds)
 ticks this task this function should be considered as const (don't modify state of object) if node is not instanced!
 
void WaitForMessage (UBehaviorTreeComponent &OwnerComp, FName MessageType) const
 register message observer
 

Protected 属性

AActor * ActorOwner
 Cached actor owner of BehaviorTreeComponent.
 
AAIController * AIOwner
 Cached AIController owner of BehaviorTreeComponent.
 
uint32 bIsAborting: 1
 set when task enters Aborting state
 
uint32 bShowPropertyDetails: 1
 show detailed information about properties
 
uint32 bStoreFinishResult: 1
 if set, execution is inside blueprint's ReceiveExecute(Abort) event FinishExecute(Abort) function should store their result in CurrentCallResult variable
 
TEnumAsByte< EBTNodeResult::Type > CurrentCallResult
 temporary variable for ReceiveExecute(Abort)-FinishExecute(Abort) chain
 
TArray< FProperty * > PropertyData
 properties that should be copied
 
uint32 ReceiveAbortImplementations: 2
 set if ReceiveAbort is implemented by blueprint
 
uint32 ReceiveExecuteImplementations: 2
 set if ReceiveExecute is implemented by blueprint
 
uint32 ReceiveTickImplementations: 2
 set if ReceiveTick is implemented by blueprint
 
FIntervalCountdown TickInterval
 If any of the Tick functions is implemented, how often should they be ticked. 更多...
 
- Protected 属性 继承自 UBTTaskNode
uint32 bIgnoreRestartSelf: 1
 if set, task search will be discarded when this task is selected to execute but is already running
 
uint32 bNotifyTaskFinished: 1
 if set, OnTaskFinished will be called
 
uint32 bNotifyTick: 1
 if set, TickTask will be called
 

额外继承的成员函数

- Public 成员函数 继承自 UBTTaskNode
void FinishLatentAbort (UBehaviorTreeComponent &OwnerComp) const
 helper function: finishes latent aborting
 
void FinishLatentTask (UBehaviorTreeComponent &OwnerComp, EBTNodeResult::Type TaskResult) const
 helper function: finish latent executing
 
void ReceivedMessage (UBrainComponent *BrainComp, const FAIMessage &Message)
 message observer's hook
 
bool ShouldIgnoreRestartSelf () const
 
EBTNodeResult::Type WrappedAbortTask (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) const
 wrapper for node instancing: AbortTask
 
EBTNodeResult::Type WrappedExecuteTask (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) const
 wrapper for node instancing: ExecuteTask
 
void WrappedOnTaskFinished (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, EBTNodeResult::Type TaskResult) const
 wrapper for node instancing: OnTaskFinished
 
bool WrappedTickTask (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, float DeltaSeconds, float &NextNeededDeltaTime) const
 wrapper for node instancing: TickTask 更多...
 
- Public 属性 继承自 UBTTaskNode
TArray< UBTService * > Services
 service nodes
 

详细描述

Base class for blueprint based task nodes.

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

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

成员函数说明

◆ ReceiveAbortAI()

void UBTTask_BlueprintBase::ReceiveAbortAI ( AAIController *  OwnerController,
APawn *  ControlledPawn 
)
protected

Alternative AI version of ReceiveAbort

参见
ReceiveAbort 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

◆ ReceiveExecute()

void UBTTask_BlueprintBase::ReceiveExecute ( AActor *  OwnerActor)
protected

entry point, task will stay active until FinishExecute is called.

@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

◆ ReceiveExecuteAI()

void UBTTask_BlueprintBase::ReceiveExecuteAI ( AAIController *  OwnerController,
APawn *  ControlledPawn 
)
protected

Alternative AI version of ReceiveExecute

参见
ReceiveExecute 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 UBTTask_BlueprintBase::ReceiveTickAI ( AAIController *  OwnerController,
APawn *  ControlledPawn,
float  DeltaSeconds 
)
protected

Alternative AI version of tick 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

类成员变量说明

◆ TickInterval

FIntervalCountdown UBTTask_BlueprintBase::TickInterval
protected

If any of the Tick functions is implemented, how often should they be ticked.

Values < 0 mean 'every tick'.


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