Circular dependencies

Thanks a lot!

So if I want to use a StateMachine function inside the Controllers .cpp i need to:

  1. forward declare (class FStateMachine;) inside Controller.h
    And to use StateMachine->Transition(); i have to

  2. add #include “StateMachine.h” to the Controller.cpp, is this correct?

so the forward-declaration is to inform there will be a class named like that, and the header include in the .cpp gives me access to it’s function?