How can I call a function in my gamemode from an actor (cyclic dependency)?

I’ve had this problem with PlayerController and the HUD class. You solve cyclic dependency issues with forward declarations as described here in this tutorial