AzureAbyss/Source/the_twilight_abyss/TurnBasedCombat/TurnBaseCombat.h

52 lines
985 B
C
Raw Normal View History

2022-11-09 20:32:31 +00:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameStateBase.h"
#include "TurnBaseCombat.generated.h"
/**
*
*/
UCLASS()
class THE_TWILIGHT_ABYSS_API ATurnBaseCombat : public AGameStateBase
{
GENERATED_BODY()
public:
ATurnBaseCombat();
2022-11-09 20:32:31 +00:00
UPROPERTY(EditDefaultsOnly)
int PlayerHealth = 100;
2022-11-09 20:32:31 +00:00
UPROPERTY(EditDefaultsOnly)
int EnemyHealth = 100;
2022-11-09 20:32:31 +00:00
UPROPERTY(EditDefaultsOnly)
int DefaultActionPoints = 3;
int ActiveActionPoints = 0;
2022-11-09 20:32:31 +00:00
AActor* playerActor;
AActor* enemyActor;
AActor* activeActor;
2022-11-09 20:32:31 +00:00
/*
TODO:
Reference Action Library
Reference Player Inventory
Reference Combat Logging System
2022-11-09 20:32:31 +00:00
*/
UPROPERTY(EditAnywhere)
TSubclassOf<UUserWidget> HUDWidget;
2022-11-09 20:32:31 +00:00
protected:
virtual void BeginPlay() override;
void UseActionPoint();
void ReuseActionPoint();
void RevertActionPoints();
2022-11-09 20:32:31 +00:00
private:
UPROPERTY(EditDefaultsOnly)
bool bIsPlayerTurn = true;
void SwitchTurn();
2022-11-09 20:32:31 +00:00
};