Advertisement
Dirt113

DHPawnMovementComponent.h

Nov 17th, 2015
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1. // Copyright 2015 Dirt Productions. All rights reserved.
  2.  
  3. #pragma once
  4.  
  5. #include "GameFramework/PawnMovementComponent.h"
  6. #include "DHPawnMovementComponent.generated.h"
  7.  
  8. /**
  9.  *
  10.  */
  11. UCLASS()
  12. class DISTANTHOME_API UDHPawnMovementComponent : public UPawnMovementComponent
  13. {
  14.     GENERATED_BODY()
  15.    
  16. public:
  17.     /** Default constructor */
  18.     UDHPawnMovementComponent(const FObjectInitializer& ObjectInitializer);
  19.  
  20.     /* ///////////////////////// FUNCTIONS ///////////////////////// */
  21. public:
  22.     /* ////////// GAMEPLAY FUNCTIONS ////////// */
  23.    
  24.     /** Called every frame */
  25.     virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisFunction) override;
  26.  
  27.     /** Returns max speed */
  28.     virtual float GetMaxSpeed() const override;
  29.  
  30. protected:
  31.     /* ////////// MOVEMENT FUNCTIONS ////////// */
  32.     UFUNCTION()
  33.         /** Returns global base speed of pawn owner */
  34.         float GetGlobalBaseSpeed() const;
  35. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement