Hey this is my first time posting on the forums but I've used this site as a resource before. Anyways I'm in the process of creating a small game. Here is my dilemma however... I'm not entirely sure how the different classes should interact with each other.
For example, lets say that I have a Player, Wall, and Collision Class. Here are my questions:
- What classes should know of eachother?
- How should the classes interact?
- Should, for example, Player be able to call a function from Collision to determine if it's colliding with Wall? Or should Collision keep an updated copy of Wall's and Player's coordinates to determine if a collision is occuring?
Thank you in advance for any help.