I really enjoy coding but currently every project I started has ended early due to the circular dependencies really messing with me and my head. I have been having problems, I am trying to make games, however due to my class structure I rely on some circular dependencies which cause problems in the end that almost always grow and go out of my control.
How I usually structure it:
I managed to figure out my problem and it was more in the way of how I thought about it, I thought I wanted a structure like this:
But what I actually wanted was:
Where every every class except GameContext contains a pointer to a GameContext. Also one of my problems was my understanding of forward declaration, I did not understand them and mixed and spread them everywhere because I thought it was magic.