text: // Copyright Mathias Kosinski 2018
  
  #pragma once
  
  #include "CoreMinimal.h"
  #include "GameFramework/Pawn.h"
  #include "TankAimingComponent.h"
  #include "Tank.generated.h"
  
  UCLASS()
  class BATTLETANK_API ATank : public APawn
  {
  	GENERATED_BODY()
  
  public:
  	void AimAt(FVector HitLocation) const;
  
  	UFUNCTION(BlueprintCallable, Category = "Setup")
  		void SetBarrelReference(UStaticMeshComponent* BarrelToSet);
  
  protected:
  	UTankAimingComponent * TankAimingComponent = nullptr;
  
  private:
  	// Sets default values for this pawn's properties
  	ATank();
  
  	// Called when the game starts or when spawned
  	virtual void BeginPlay() override;
  
  	// Called every frame
  	virtual void Tick(float DeltaTime) override;
  
  	// Called to bind functionality to input
  	virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
  };
  