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.
awesome_game/Source/TurnBasedTutorial/ManageSquad/ManageSquadTrooper.h

44 lines
890 B

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "ManageSquadTrooper.generated.h"
UENUM()
enum ETrooperType {
TROOPER_SAMPLE,
TROOPER_IN_SQUAD
};
UCLASS()
class TURNBASEDTUTORIAL_API AManageSquadTrooper : public ACharacter {
GENERATED_BODY()
AManageSquadTrooper();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
UPROPERTY(EditAnywhere)
int Index = -1;
UPROPERTY(EditAnywhere)
TEnumAsByte<ETrooperType> Type;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
UFUNCTION()
2 years ago
void ChangeSkeletalMesh(const AManageSquadTrooper *OtherTrooper) const;
UFUNCTION()
ETrooperType GetType() const;
UFUNCTION()
int GetIndex() const;
};