diff --git a/Source/Nakatomi/EnemyCharacter.cpp b/Source/Nakatomi/EnemyCharacter.cpp index cb0041e..26b4fbf 100644 --- a/Source/Nakatomi/EnemyCharacter.cpp +++ b/Source/Nakatomi/EnemyCharacter.cpp @@ -36,7 +36,24 @@ UAIPerceptionComponent* AEnemyCharacter::GetPerceptionComponent() return PerceptionComponent; } +void AEnemyCharacter::OnFire() +{ + TArray Hits = TArray(); + CalculateHits(&Hits); + ProcessHits(Hits); + + GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("BANG")); +} + void AEnemyCharacter::BeginPlay() { Super::BeginPlay(); } + +void AEnemyCharacter::CalculateHits(TArray* hits) +{ +} + +void AEnemyCharacter::ProcessHits(TArray hits) +{ +} diff --git a/Source/Nakatomi/EnemyCharacter.h b/Source/Nakatomi/EnemyCharacter.h index 9d92435..5bcd4ea 100644 --- a/Source/Nakatomi/EnemyCharacter.h +++ b/Source/Nakatomi/EnemyCharacter.h @@ -37,6 +37,14 @@ public: UAIPerceptionComponent* GetPerceptionComponent(); + virtual void OnFire() override; + protected: virtual void BeginPlay() override; + +private: + + virtual void CalculateHits(TArray* hits) override; + + virtual void ProcessHits(TArray hits) override; };