presidents-brigade/Source/PresidentsBrigade/EnemyPawn.h
2024-01-02 19:40:23 -08:00

35 lines
682 B
C++
Executable File

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "BasePawn.h"
#include "EnemyPawn.generated.h"
class APickup;
/**
*
*/
UCLASS()
class PRESIDENTSBRIGADE_API AEnemyPawn : public ABasePawn
{
GENERATED_BODY()
protected:
virtual void BeginPlay() override;
virtual void destroy_self() override;
virtual void handle_hit_internal(AActor* other_actor) override;
/**
* Pickup class to spawn on death.
*/
UPROPERTY(EditAnywhere, Category = "Player")
TSubclassOf<class APickup> pickup_class;
private:
/**
* Random number stream.
*/
FRandomStream random;
};