You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
816 B
37 lines
816 B
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "EnemyAIController.h"
|
|
#include "../BattleGameState.h"
|
|
#include "SinglePlayerGS.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class TURNBASEDTUTORIAL_API ASinglePlayerGS : public ABattleGameState {
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
ASinglePlayerGS();
|
|
|
|
virtual void BeginPlay() override;
|
|
|
|
virtual void CycleTurns() override;
|
|
|
|
virtual void Tick(float DeltaSeconds) override;
|
|
|
|
AEnemyAIController *GetEnemyAIController() const;
|
|
|
|
const TArray<TSubclassOf<ATrooper>> &GetTroopersAssets() const;
|
|
|
|
protected:
|
|
UPROPERTY(Replicated)
|
|
AEnemyAIController *EnemyAiManager = nullptr;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
|
TArray<TSubclassOf<ATrooper>> TrooperBpAssets;
|
|
};
|