vampires/Source/vampires/EnemyCharacter.h

40 lines
733 B
C
Raw Normal View History

2024-06-12 21:42:22 +01:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "VampireCharacter.h"
#include "BehaviorTree/BehaviorTree.h"
#include "EnemyCharacter.generated.h"
/**
*
*/
UCLASS()
class VAMPIRES_API AEnemyCharacter : public AVampireCharacter
{
GENERATED_BODY()
private:
UPROPERTY(EditDefaultsOnly, Meta = (AllowPrivateAccess = "true"))
2024-06-14 23:19:05 +01:00
UBehaviorTree* BehaviorTree;
2024-06-12 21:42:22 +01:00
public:
AEnemyCharacter(const FObjectInitializer& ObjectInitializer);
protected:
virtual void BeginPlay() override;
public:
virtual void Tick(float DeltaTime) override;
2024-06-14 23:19:05 +01:00
UBehaviorTree* GetBehaviorTree();
UFUNCTION()
virtual void OnDamaged();
UFUNCTION()
virtual void OnDeath();
2024-06-12 21:42:22 +01:00
};