6#include "BTCompositeNode.generated.h"
86UCLASS(Abstract, MinimalAPI)
154 int32 GetChildrenNum()
const;
160 uint16 GetLastExecutionIndex()
const;
186 bool IsApplyingDecoratorScope()
const;
189 UE_DEPRECATED(5.0,
"This function is deprecated. Please use RequestBranchDeactivation instead.")
191 UE_DEPRECATED(5.0,
"This function is deprecated. Please use RequestBranchDeactivation instead.")
210 uint32 bUseDecoratorsActivationCheck : 1;
213 uint32 bUseDecoratorsDeactivationCheck : 1;
216 uint32 bUseDecoratorsFailedActivationCheck : 1;
269 template<
typename NotifyChildExecution,
typename NotifyNodeActivation,
typename NotifyNodeDeactivation,
270 typename CanNotifyDecoratorsOnActivation,
typename CanNotifyDecoratorsOnDeactivation,
typename CanNotifyDecoratorsOnFailedActivation>
271 void InitNotifyFlags(NotifyChildExecution, NotifyNodeActivation, NotifyNodeDeactivation,
272 CanNotifyDecoratorsOnActivation, CanNotifyDecoratorsOnDeactivation, CanNotifyDecoratorsOnFailedActivation)
283#define INIT_COMPOSITE_NODE_NOTIFY_FLAGS() \
285 using NodeType = TRemovePointer<decltype(this)>::Type; \
286 InitNotifyFlags(&NodeType::NotifyChildExecution,\
287 &NodeType::NotifyNodeActivation,\
288 &NodeType::NotifyNodeDeactivation, \
289 &NodeType::CanNotifyDecoratorsOnActivation,\
290 &NodeType::CanNotifyDecoratorsOnDeactivation,\
291 &NodeType::CanNotifyDecoratorsOnFailedActivation); \
300 (Children[
Index].ChildComposite ?
306inline int32 UBTCompositeNode::GetChildrenNum()
const
308 return Children.
Num();
311inline uint16 UBTCompositeNode::GetLastExecutionIndex()
const
316inline bool UBTCompositeNode::IsApplyingDecoratorScope()
const
EBTChildIndex
Definition BTCompositeNode.h:26
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_DELEGATE_RetVal_ThreeParams(ReturnValueType, DelegateName, Param1Type, Param2Type, Param3Type)
Definition DelegateCombinations.h:72
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
UE_REWRITE SizeType Num() const
Definition Array.h:1144
UE_NODEBUG UE_FORCEINLINE_HINT bool IsValidIndex(SizeType Index) const
Definition Array.h:1122
Definition EnumAsByte.h:22
Definition BTCompositeNode.h:88
virtual AIMODULE_API void NotifyNodeDeactivation(FBehaviorTreeSearchData &SearchData, EBTNodeResult::Type &NodeResult) const
Definition BTCompositeNode.cpp:325
virtual AIMODULE_API bool CanNotifyDecoratorsOnActivation(FBehaviorTreeSearchData &SearchData, int32 ChildIdx) const
Definition BTCompositeNode.cpp:661
uint32 bApplyDecoratorScope
Definition BTCompositeNode.h:198
virtual AIMODULE_API bool CanNotifyDecoratorsOnDeactivation(FBehaviorTreeSearchData &SearchData, int32 ChildIdx, EBTNodeResult::Type &NodeResult) const
Definition BTCompositeNode.cpp:666
uint16 LastExecutionIndex
Definition BTCompositeNode.h:219
void InitNotifyFlags(NotifyChildExecution, NotifyNodeActivation, NotifyNodeDeactivation, CanNotifyDecoratorsOnActivation, CanNotifyDecoratorsOnDeactivation, CanNotifyDecoratorsOnFailedActivation)
Definition BTCompositeNode.h:271
virtual AIMODULE_API void NotifyChildExecution(UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, int32 ChildIdx, EBTNodeResult::Type &NodeResult) const
Definition BTCompositeNode.cpp:317
virtual AIMODULE_API void NotifyNodeActivation(FBehaviorTreeSearchData &SearchData) const
Definition BTCompositeNode.cpp:321
virtual AIMODULE_API bool CanNotifyDecoratorsOnFailedActivation(FBehaviorTreeSearchData &SearchData, int32 ChildIdx, EBTNodeResult::Type &NodeResult) const
Definition BTCompositeNode.cpp:671
Definition BTDecorator.h:38
Definition BTService.h:35
Definition BTTaskNode.h:34
Definition BehaviorTreeComponent.h:105
constexpr int32 ReturnToParent
Definition BehaviorTreeTypes.h:77
Definition BTCompositeNode.h:33
Type
Definition BTCompositeNode.h:37
@ Not
Definition BTCompositeNode.h:46
Type
Definition BehaviorTreeTypes.h:217
Type
Definition BehaviorTreeTypes.h:135
Type
Definition BehaviorTreeTypes.h:126
Definition BehaviorTreeTypes.h:84
Type
Definition BehaviorTreeTypes.h:87
Definition TestUtils.cpp:8
U16 Index
Definition radfft.cpp:71
Definition BTCompositeNode.h:67
Definition BTCompositeNode.h:16
int8 CurrentChild
Definition BTCompositeNode.h:18
int8 OverrideChild
Definition BTCompositeNode.h:21
Definition BTCompositeNode.h:52
FBTDecoratorLogic(uint8 InOperation, uint16 InNumber)
Definition BTCompositeNode.h:62
Definition BehaviorTreeTypes.h:450
Definition BehaviorTreeTypes.h:534
Definition ObjectPtr.h:488