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.
|
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
#include "GameFramework/GameState.h"
|
|
|
|
#include "MyGameState.generated.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
UCLASS()
|
|
|
|
class TURNBASEDTUTORIAL_API AMyGameState : public AGameState {
|
|
|
|
GENERATED_BODY()
|
|
|
|
// public:
|
|
|
|
// UFUNCTION(BlueprintCallable)
|
|
|
|
// void CycleTurns();
|
|
|
|
//
|
|
|
|
// UFUNCTION(BlueprintCallable)
|
|
|
|
// void StartGame();
|
|
|
|
//
|
|
|
|
// private:
|
|
|
|
// // void InitializeBattleField() const;
|
|
|
|
//
|
|
|
|
// UFUNCTION()
|
|
|
|
// AMyPlayerController *GetMyPlayerController(uint8 const PlayerIndex) const;
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// UFUNCTION(BlueprintPure)
|
|
|
|
// AMyPlayerController *PlayerInTurn() const;
|
|
|
|
//
|
|
|
|
// UFUNCTION(BlueprintPure)
|
|
|
|
// AMyPlayerController *PlayerNotInTurn() const;
|
|
|
|
//
|
|
|
|
// UPROPERTY()
|
|
|
|
// uint8 CurrentPlayerTurn{0};
|
|
|
|
};
|