37 lines
731 B
C++
37 lines
731 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "BasePawn.h"
|
|
#include "Tank.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class TOONTANKS_API ATank : public ABasePawn
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
ATank();
|
|
|
|
// Called to bind functionality to input
|
|
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
|
|
|
|
private:
|
|
UPROPERTY(VisibleAnywhere, Category = "Components")
|
|
class USpringArmComponent* SpringArm;
|
|
|
|
UPROPERTY(VisibleAnywhere, Category = "Components")
|
|
class UCameraComponent* Camera;
|
|
|
|
UPROPERTY(EditAnywhere, Category = "Movement")
|
|
float Speed = 200.f;
|
|
|
|
void Move(float Value);
|
|
|
|
void Turn(float TValue);
|
|
};
|