blaster/Source/Blaster/PlayerController/BlasterPlayerController.h

34 lines
612 B
C
Raw Normal View History

2022-05-05 15:57:57 +00:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include "BlasterPlayerController.generated.h"
/**
*
*/
UCLASS()
class BLASTER_API ABlasterPlayerController : public APlayerController
{
GENERATED_BODY()
2022-05-07 10:03:33 +00:00
public:
void SetHUDHealth(float Health, float MaxHealth);
2022-05-09 14:33:48 +00:00
void SetHUDScore(float Score);
2022-05-09 15:16:41 +00:00
void SetHUDDefeats(int32 Defeats);
2022-05-08 19:16:19 +00:00
virtual void OnPossess(APawn* InPawn) override;
2022-05-07 10:03:33 +00:00
protected:
virtual void BeginPlay() override;
private:
2022-05-09 15:16:41 +00:00
UPROPERTY()
2022-05-07 10:03:33 +00:00
class ABlasterHUD* BlasterHUD;
2022-05-05 15:57:57 +00:00
};