35 lines
911 B
C++
35 lines
911 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "AIController.h"
|
|
#include "EnemyController.generated.h"
|
|
|
|
class UBlackboardComponent;
|
|
class UBehaviorTreeComponent;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class SHOOTER_API AEnemyController : public AAIController
|
|
{
|
|
GENERATED_BODY()
|
|
public:
|
|
AEnemyController();
|
|
virtual void OnPossess(APawn* InPawn) override;
|
|
|
|
private:
|
|
/** Blackboard component for this enemy */
|
|
UPROPERTY(BlueprintReadWrite, Category = "AI Behavior", meta = (AllowPrivateAccess = true))
|
|
UBlackboardComponent* BlackboardComponent;
|
|
|
|
/** BehaviorTree component for this enemy */
|
|
UPROPERTY(BlueprintReadWrite, Category = "AI Behavior", meta = (AllowPrivateAccess = true))
|
|
UBehaviorTreeComponent* BehaviorTreeComponent;
|
|
|
|
public:
|
|
FORCEINLINE UBlackboardComponent* GetBlackboardComponent() const { return BlackboardComponent; }
|
|
};
|