Action task node. 更多...
#include <BTTask_PushPawnAction.h>
类 UBTTask_PushPawnAction 继承关系图:Protected 成员函数 | |
| virtual EBTNodeResult::Type | ExecuteTask (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) override |
| starts this task, should return Succeeded, Failed or InProgress (use FinishLatentTask() when returning InProgress) this function should be considered as const (don't modify state of object) if node is not instanced! | |
Protected 成员函数 继承自 UBTTask_PawnActionBase | |
| virtual void | OnActionEvent (UPawnAction &Action, EPawnActionEventType::Type Event) |
| action observer, updates state of task | |
| virtual void | OnActionLost (UPawnAction &Action) |
| called when action is removed from stack (FinishedAborting) by some external event default behavior: finish task as failed | |
| EBTNodeResult::Type | PushAction (UBehaviorTreeComponent &OwnerComp, UPawnAction &Action) |
| starts executing pawn action | |
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 | |
额外继承的成员函数 | |
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 成员函数 继承自 UBTTask_PawnActionBase | |
| static EPawnActionTaskResult | ActionEventHandler (UBTTaskNode *TaskNode, UPawnAction &Action, EPawnActionEventType::Type Event) |
| helper functions, should be used when behavior tree task deals with pawn actions, but can't derive from this class | |
Public 属性 继承自 UBTTaskNode | |
| TArray< UBTService * > | Services |
| service nodes | |
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 | |
Action task node.
Push pawn action to controller.