|
|
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
|
| |
|
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
|
| |
|
|
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. 更多...
|
| |
|
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
|
| |
|
|
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 更多...
|
| |
|
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.