Class communication methods
I've been planning some things for the game I'm currently working on, here's an excerpt from my 'plan list' that I could use some guidance with:
I can't think of a method that would allow me to accomplish this without having the map class load and parse the files itself.
3. A map class (CMapControl?) to handle creation and rendering of maps.
Having the map class load the map scripts itself would be ideal in that
it's easier to manage, but I want to have seperate classes "doing their
own thing", therefore a script parsing class should load and parse the map
script, sending necessary data to the map class for rendering etc.
4. A script class. Should handle reading and parsing of script files with
some sort of global method of transferring arbitary data between other
interfaces, e.g. parsing a map script (tile layout etc) and sending the
tile data to the map class for rendering etc