Original Post
I am working on a game where there is some information that is constantly used by many portions of the program. For instance, the map data and the unit template data are used in many places other than just when displaying the map or populating the unit to build dialog. The map boundaries, for example, are used by the AI routines when enumerating the hexes that a given city manager is responsible for. I've been passing the needed data into the routines, but then I came across the singleton pattern, so I started looking into other ways of doing this. Then I learned the singleton pattern was evil :-) so I came here to get some advice. What are some methods of doing this. Should I just keep passing the data in as parameters? Thanks in advance.