text: // Copyright Steve Barnes 2017 
  
  #pragma once
  
  #include "GameFramework/Actor.h"
  #include "Projectile.generated.h"
  
  UCLASS()
  class BATTLETANK_API AProjectile : public AActor
  {
  	GENERATED_BODY()
  	
  public:	
  	// Sets default values for this actor's properties
  	AProjectile();
  	
  	virtual void Tick(float DeltaTime) override;
  	
  	// Called when the game starts or when spawned
  	virtual void BeginPlay() override;
  
  	void LaunchProjectile(float speed);
  
  private:
  	UProjectileMovementComponent* MyProjectileMovementComponent = nullptr;
  
  	UPROPERTY(VisibleAnywhere, Category = "Setup")
  	UStaticMeshComponent* ProjectileCollisionMesh = nullptr;
  	UPROPERTY(VisibleAnywhere, Category = "Setup")
  	UParticleSystemComponent* LaunchBlast = nullptr;
  };
  