Volte6
August 26th, 2004, 05:31 PM
Hi, I'm sorry for the double post. I tried this in a different forum but unfortunately it got no reads!
Anyhow, I have this problem...
I want to create clean modular code with a nice class structure and all that great stuff... but it seems that everything I get going, I get to this point where I try referencing things that haven't been created yet, and then I get in the habit of having to PASS everything to everything/make it global, or it doesn't know it exists! Or maybe I end up moving around all of my header includes so that it'll know what is what, and that creates a whole mess of tracking and more problems down the line...
How does one usually handle this sort of thing? I'm working on a GDI wrapper that simplifies the process of making games, mostly as a learning experiment. It's going great, but I can't make a clean game out of it without a lot of hackish coding.
Can anyone give me some solid advice, examples, or refer me to a free online source for these sort of architectural issues? I can learn and figure out just about anything, but I can't manage a solution to this sort of thing.
Thanks folks!
Anyhow, I have this problem...
I want to create clean modular code with a nice class structure and all that great stuff... but it seems that everything I get going, I get to this point where I try referencing things that haven't been created yet, and then I get in the habit of having to PASS everything to everything/make it global, or it doesn't know it exists! Or maybe I end up moving around all of my header includes so that it'll know what is what, and that creates a whole mess of tracking and more problems down the line...
How does one usually handle this sort of thing? I'm working on a GDI wrapper that simplifies the process of making games, mostly as a learning experiment. It's going great, but I can't make a clean game out of it without a lot of hackish coding.
Can anyone give me some solid advice, examples, or refer me to a free online source for these sort of architectural issues? I can learn and figure out just about anything, but I can't manage a solution to this sort of thing.
Thanks folks!