LEAP Documentation 40220
Documentation for the LEAP project
ProjectXRecordingPawn.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2021. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/Pawn.h"
7#include "ProjectXRecordingPawn.generated.h"
8
9class USpringArmComponent;
10class UCameraComponent;
12
13UCLASS()
14class PROJECTX_API AProjectXRecordingPawn : public APawn
15{
16 GENERATED_BODY()
17
18public:
20
21 virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
22
23 void GetLifetimeReplicatedProps(TArray< FLifetimeProperty >& OutLifetimeProps) const override;
24
25 void SetViewingActor(AProjectXCharacter* InViewingActor);
26 void SetOriginalActor(AProjectXCharacter* InOriginalActor) { OriginalActor = InOriginalActor; }
27
28protected:
29 void MoveForward(float Value);
30 void Turn(float Value);
31 void LookUp(float Value);
32
33 void DisableFindCameraFollowTarget();
34
35 UFUNCTION()
36 void OnViewingActorDeath(class AActor* Victim, const float Damage, struct FDamageEvent const& DamageEvent, const class AController* EventInstigator, const class AActor* DamageCauser, const class APlayerState* InstigatorPlayerState);
37
38 UPROPERTY(EditAnywhere, Category = "Camera")
39 UCameraComponent* PawnCameraComponent = nullptr;
40
41 UPROPERTY(EditAnywhere, Category = "Camera")
42 USpringArmComponent* CameraBoom = nullptr;
43
44 UPROPERTY(Replicated)
45 AProjectXCharacter* OriginalActor = nullptr;
46
47 UPROPERTY(Replicated)
48 AProjectXCharacter* ViewingActor = nullptr;
49};
Definition: ProjectXCharacter.h:128
virtual void MoveForward(float Val)
Definition: ProjectXCharacter.cpp:638
virtual void SetupPlayerInputComponent(UInputComponent *InputComponent) override
Definition: ProjectXCharacter.cpp:587
Definition: ProjectXRecordingPawn.h:15
void SetOriginalActor(AProjectXCharacter *InOriginalActor)
Definition: ProjectXRecordingPawn.h:26