title: Game Objects Talking To Each Other
body: <p>What is a good way of dealing with objects and having them talk to each other?</p>
  
  <p>Up until now all my games hobby/student have been small so this problem was generally solved in a rather ugly way, which lead to tight integration and circular dependencies. Which was fine for the size of projects I was doing.</p>
  
  <p>However my projects have been getting bigger in size and complexity and now I want to start re-using code, and making my head a simpler place.</p>
  
  <p>The main problem I have is generally along the lines of <code>Player</code> needs to know about the <code>Map</code> and so does the <code>Enemy</code>, this has usually descended into setting lots of pointers and having lots of dependencies, and this becomes a mess quickly.</p>
  
  <p>I have thought along the lines of a message style system. but I cant really see how this reduces the dependencies, as I would still be sending the pointers everywhere.</p>
  
  <p><sup>PS: I guess this has been discussed before, but I don't know what its called just the need I have.</sup></p>