What I did/didn't recognise

What I did recognise in the .cpp file:

  • #include to include the associated header file
  • UPositionReport::Function() to access the class functions
  • PrimaryComponentTick.bCanEverTick is assigning the public class variable bCanEverTick within PrimaryComponentTick
  • void functions called when returning nothing
  • ELevelTick has the naming convention of an enumeration, which makes sense for a variable called TickType
  • ThisTickFunction is a pointer (memory address) which points to a variable of type FActorComponentTickFunction

What I didn’t recognise in the .cpp file:

  • Why PrimaryComponentTick is not declared but it can have it’s variables assigned
  • The Super class
  • The float type

What I did recognise in the .h file:

  • #pragma once
  • #include for multiple header files
  • Declaring the public function UPositionReport

What I did not recognise in the .h file:

  • The whole UCLASS line
  • class BUILDINGESCAPE_API UPositionReport : UActorComponent (although I don’t recognise it it seems that this means that UActorComponent is the parent class of UPositionReport)
  • GENERATED_BODY()
  • “protected” for declaring the function (rather than the “private” we’re used to)
  • virtual void type
  • ending a line with override