I've got a class named Player and there will be 200-300 instances of this class. There is a function within this class called Move and this function requires knowledge of the map.
I also have a class named Map with 1-2 instances. What is the best way to feed an instance of Map into the Player instances?
I just ask because if i feed it to the instance upon Player init so I can access the instance via self.map - won't that be creating hundreds of copies of the Map instance (one for each instance of Player)?
For all I know this could be the standard way of doing it but I have a nagging feeling that this isn't proper.
Thanks