Space Plunder
Loading...
Searching...
No Matches
BTService_SelectTargetObject.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "BehaviorTree/BTService.h"
7#include "Data/BaseData.h"
8#include "BTService_SelectTargetObject.generated.h"
9
14UCLASS()
15class AITOOLKIT_API UBTService_SelectTargetObject : public UBTService
16{
17 GENERATED_BODY()
18
19
20public:
22
23 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
24 FBlackboardKeySelector TargetObject;
25 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
26 TArray<EAIStimuliType> FilterTypes;
27 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI")
28 bool bResetIfNoneFound = true;
29
30 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI|Debugging")
31 bool bDebuggingMode = false;
32 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI|Debugging")
33 bool bDebugAllObjects = true;
34 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI|Debugging")
35 float PointSize = 20.0f;
36 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI|Debugging")
37 FColor ObjectPointColor = FColor::Yellow;
38 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="AI|Debugging")
39 FColor TargetPointColor = FColor::Red;
40
41
42protected:
43 virtual void TickNode(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory, float DeltaSeconds) override;
44
45 virtual FString GetStaticDescription() const override;
46#if WITH_EDITOR
47 virtual FName GetNodeIconName() const override;
48#endif // WITH_EDITOR
49
50 virtual uint16 GetInstanceMemorySize() const override;
51
52private:
54 {
55 AActor* BestTarget = nullptr;
56 float NearestTargetDistance = 10000000.0f;
57 };
58
59
60};
EAIStimuliType
Definition BaseData.h:198
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition BTService_SelectTargetObject.h:16
Definition BTService_SelectTargetObject.h:54