Hi all,
For those of you whom don't know me, you can check out this link if you're interested:
http://www.cplusplus.com/forum/general/38389/.
For those of you whom are interested, I'm now doing incremental compilation (turns out that our textbook actually has a whole five or so pages dedicated to inc. building, so it was really useful. This was opposed to our Year 11 textbook which described it but never explained it).
Currently I'm using MS VC++ 2010, but am thinking of returning to Code::Blocks as VC++ seems to rebuild the entire solution upon each build instead of an incremental one.
===
END OF INTRO===
Note that I'm assuming that you've read the above. Sorry.
Like every game, mine has an initialisation subroutine, a game loop and an exiting subroutine. Unlike most that I've seen however, mine has the added extra of changing them from void subroutines to a Boolean function and an integer funtion respectively.
The ultimate goal of this is to safeguard the code and prevent someone who is running an Intel 386 with Windows 3.11 from running the game. Basically, if the requirements aren't met, the game will never run (of course, the user will be notified why).
Conversely, the exiting function is designed to return ALL data that is still being used. It also unloads files, etc. Now my main concern is memory leaks because of pointers and objects that were never deleted. Basically, what I want to do is find any objects that may still exist and delete them before shutting down.
The silver lining to this is that you don't need to know what objects exist or do not exist. Basically, it's the sweeper that finds everything out there and deletes it.
I know classes have their own destructor, which probably takes care of them, but pointers are still an issue for programmers.
Cheers