From c23bbb4f0828f11ca3801d79bd984286412fd784 Mon Sep 17 00:00:00 2001 From: PHILIP White Date: Mon, 14 Nov 2022 00:02:46 +0000 Subject: [PATCH] Added Test Combat Player Character --- .../PlayerCharacterCombatTest.uasset | 3 ++ .../PlayerCharacterCombatTest.cpp | 34 +++++++++++++++++++ .../PlayerCharacterCombatTest.h | 29 ++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 Content/Blueprints/Combat_UI/PlayerCharacterCombatTest.uasset create mode 100644 Source/the_twilight_abyss/TurnBasedCombat/PlayerCharacterCombatTest.cpp create mode 100644 Source/the_twilight_abyss/TurnBasedCombat/PlayerCharacterCombatTest.h diff --git a/Content/Blueprints/Combat_UI/PlayerCharacterCombatTest.uasset b/Content/Blueprints/Combat_UI/PlayerCharacterCombatTest.uasset new file mode 100644 index 0000000..1a35a36 --- /dev/null +++ b/Content/Blueprints/Combat_UI/PlayerCharacterCombatTest.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0292f02e9a169f359bc4851d983fabb25cb905fe8877599fe07090b1ef59c30a +size 22873 diff --git a/Source/the_twilight_abyss/TurnBasedCombat/PlayerCharacterCombatTest.cpp b/Source/the_twilight_abyss/TurnBasedCombat/PlayerCharacterCombatTest.cpp new file mode 100644 index 0000000..252a758 --- /dev/null +++ b/Source/the_twilight_abyss/TurnBasedCombat/PlayerCharacterCombatTest.cpp @@ -0,0 +1,34 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "TurnBasedCombat/PlayerCharacterCombatTest.h" + +// Sets default values +APlayerCharacterCombatTest::APlayerCharacterCombatTest() +{ + // Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it. + PrimaryActorTick.bCanEverTick = true; + +} + +// Called when the game starts or when spawned +void APlayerCharacterCombatTest::BeginPlay() +{ + Super::BeginPlay(); + +} + +// Called every frame +void APlayerCharacterCombatTest::Tick(float DeltaTime) +{ + Super::Tick(DeltaTime); + +} + +// Called to bind functionality to input +void APlayerCharacterCombatTest::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) +{ + Super::SetupPlayerInputComponent(PlayerInputComponent); + +} + diff --git a/Source/the_twilight_abyss/TurnBasedCombat/PlayerCharacterCombatTest.h b/Source/the_twilight_abyss/TurnBasedCombat/PlayerCharacterCombatTest.h new file mode 100644 index 0000000..ffffd26 --- /dev/null +++ b/Source/the_twilight_abyss/TurnBasedCombat/PlayerCharacterCombatTest.h @@ -0,0 +1,29 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "GameFramework/Character.h" +#include "PlayerCharacterCombatTest.generated.h" + +UCLASS() +class THE_TWILIGHT_ABYSS_API APlayerCharacterCombatTest : public ACharacter +{ + GENERATED_BODY() + +public: + // Sets default values for this character's properties + APlayerCharacterCombatTest(); + +protected: + // Called when the game starts or when spawned + virtual void BeginPlay() override; + +public: + // Called every frame + virtual void Tick(float DeltaTime) override; + + // Called to bind functionality to input + virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override; + +};