35 lines
682 B
C++
Executable File
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;
|
|
};
|