text: // Fill out your copyright notice in the Description page of Project Settings.
  
  #pragma once
  
  #include "GameFramework/NavMovementComponent.h"
  #include "TankMovementComponent.generated.h"
  
  class UTankTrack;
  
  /**
   * Responsible for driving the tank tracks
   */
  UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
  class BATTLETANK_API UTankMovementComponent : public UNavMovementComponent
  {
  	GENERATED_BODY()
  
  public:
  
  	UFUNCTION(BlueprintCallable, Category = "Setup")
  	void Initialise(UTankTrack* LeftTrackToSet, UTankTrack* RightTrackToSet);
  
  	UFUNCTION(BlueprintCallable, Category = "Input")
  	void IntendMoveForward(float Throw);
  
  	UFUNCTION(BlueprintCallable, Category = "Input")
  	void IntendTurnRight(float Throw);
  
  private:
  	// Call fromthe pathfinding logic by the AI controllers
  	void RequestDirectMove(const FVector& MoveVelocity, bool bForceMaxSpeed) override;
  	UTankTrack* LeftTrack = nullptr;
  	UTankTrack* RightTrack = nullptr;
  
  };
  