Space Plunder
Loading...
Searching...
No Matches
TP_ThirdPersonCharacter.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/Character.h"
7#include "InputActionValue.h"
8#include "TP_ThirdPersonCharacter.generated.h"
9
10
11UCLASS(config=Game)
12class ATP_ThirdPersonCharacter : public ACharacter
13{
14 GENERATED_BODY()
15
16
17 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true"))
18 class USpringArmComponent* CameraBoom;
19
21 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true"))
22 class UCameraComponent* FollowCamera;
23
25 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
26 class UInputMappingContext* DefaultMappingContext;
27
29 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
30 class UInputAction* JumpAction;
31
33 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
34 class UInputAction* MoveAction;
35
37 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
38 class UInputAction* LookAction;
39
40public:
42
43
44protected:
45
47 void Move(const FInputActionValue& Value);
48
50 void Look(const FInputActionValue& Value);
51
52
53protected:
54 // APawn interface
55 virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
56
57 // To add mapping context
58 virtual void BeginPlay();
59
60public:
62 FORCEINLINE class USpringArmComponent* GetCameraBoom() const { return CameraBoom; }
64 FORCEINLINE class UCameraComponent* GetFollowCamera() const { return FollowCamera; }
65};
66
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition TP_ThirdPersonCharacter.h:13
FORCEINLINE class UCameraComponent * GetFollowCamera() const
Definition TP_ThirdPersonCharacter.h:64