diff --git a/Source/WhipWing/Game/WhipWingGameMode.cpp b/Source/WhipWing/Game/WhipWingGameMode.cpp new file mode 100644 index 0000000..ddac4a9 --- /dev/null +++ b/Source/WhipWing/Game/WhipWingGameMode.cpp @@ -0,0 +1,5 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "Game/WhipWingGameMode.h" + diff --git a/Source/WhipWing/Game/WhipWingGameMode.h b/Source/WhipWing/Game/WhipWingGameMode.h new file mode 100644 index 0000000..9851cb9 --- /dev/null +++ b/Source/WhipWing/Game/WhipWingGameMode.h @@ -0,0 +1,17 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "GameFramework/GameModeBase.h" +#include "WhipWingGameMode.generated.h" + +/** + * + */ +UCLASS() +class WHIPWING_API AWhipWingGameMode : public AGameModeBase +{ + GENERATED_BODY() + +}; diff --git a/Source/WhipWing/Player/FlightMovementComponent.cpp b/Source/WhipWing/Player/FlightMovementComponent.cpp new file mode 100644 index 0000000..841f7e3 --- /dev/null +++ b/Source/WhipWing/Player/FlightMovementComponent.cpp @@ -0,0 +1,34 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "Player/FlightMovementComponent.h" + +// Sets default values for this component's properties +UFlightMovementComponent::UFlightMovementComponent() +{ + // Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features + // off to improve performance if you don't need them. + PrimaryComponentTick.bCanEverTick = true; + + // ... +} + + +// Called when the game starts +void UFlightMovementComponent::BeginPlay() +{ + Super::BeginPlay(); + + // ... + +} + + +// Called every frame +void UFlightMovementComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) +{ + Super::TickComponent(DeltaTime, TickType, ThisTickFunction); + + // ... +} + diff --git a/Source/WhipWing/Player/FlightMovementComponent.h b/Source/WhipWing/Player/FlightMovementComponent.h new file mode 100644 index 0000000..a31fee3 --- /dev/null +++ b/Source/WhipWing/Player/FlightMovementComponent.h @@ -0,0 +1,28 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "Components/ActorComponent.h" +#include "FlightMovementComponent.generated.h" + + +UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) ) +class WHIPWING_API UFlightMovementComponent : public UActorComponent +{ + GENERATED_BODY() + +public: + // Sets default values for this component's properties + UFlightMovementComponent(); + +protected: + // Called when the game starts + virtual void BeginPlay() override; + +public: + // Called every frame + virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override; + + +}; diff --git a/Source/WhipWing/Player/WhipWingPawn.cpp b/Source/WhipWing/Player/WhipWingPawn.cpp new file mode 100644 index 0000000..7e1eced --- /dev/null +++ b/Source/WhipWing/Player/WhipWingPawn.cpp @@ -0,0 +1,34 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "Player/WhipWingPawn.h" + +// Sets default values +AWhipWingPawn::AWhipWingPawn() +{ + // Set this pawn 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 AWhipWingPawn::BeginPlay() +{ + Super::BeginPlay(); + +} + +// Called every frame +void AWhipWingPawn::Tick(float DeltaTime) +{ + Super::Tick(DeltaTime); + +} + +// Called to bind functionality to input +void AWhipWingPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) +{ + Super::SetupPlayerInputComponent(PlayerInputComponent); + +} + diff --git a/Source/WhipWing/Player/WhipWingPawn.h b/Source/WhipWing/Player/WhipWingPawn.h new file mode 100644 index 0000000..f06564c --- /dev/null +++ b/Source/WhipWing/Player/WhipWingPawn.h @@ -0,0 +1,29 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "GameFramework/Pawn.h" +#include "WhipWingPawn.generated.h" + +UCLASS() +class WHIPWING_API AWhipWingPawn : public APawn +{ + GENERATED_BODY() + +public: + // Sets default values for this pawn's properties + AWhipWingPawn(); + +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; + +};