Illusion-UE5/hwanyoung2/Source/hwanyoung2/HYWeapon.h
2024-02-25 17:46:42 -05:00

46 lines
988 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "HYEnemy.h"
#include "HYWeapon.generated.h"
UCLASS()
class HWANYOUNG2_API AHYWeapon : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AHYWeapon();
AHYWeapon(float atkDmg, float critDmg, float critRt);
float attackDamage; //flat numbers for attack damage
float critDamage; //flat numbers for crit damage
float critRate; //percentage rate of how likely one hits a crit dmg
/* smth to think about in later epics:
* hit stop - this is more an event+animation frame related thing
* knock back - this is more of status effect stuff
*/
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
/*
*/
virtual void UseWeapon(AHYEnemy* target);
};