Jump to content

  • Log In with Google      Sign In   
  • Create Account

Header Organization Advice please ?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 mrhodes   Members   -  Reputation: 324

Like
0Likes
Like

Posted 13 December 2012 - 11:38 AM

I am in the beginning stages of making a game, and I am wondering if it is best to have 1 main header that includes all my other headers, or should I only include headers needed for each module I am working on?

I am asking this because I am now noticing that as my project grows any change to my 1 main header causes everything to recompile...

So, any thoughts about this topic that can help ?
I am thinking I should probably just include the headers needed for each class instead of including everything in each class.

Please share any thoughts please...

Michael
Michael RhodesTiger Studios Web Designhttp://tigerstudios.net

Sponsor:

#2 fastcall22   Crossbones+   -  Reputation: 4477

Like
0Likes
Like

Posted 13 December 2012 - 11:44 AM

It's dangerous to go alone.
Take this!
c3RhdGljIGNoYXIgeW91cl9tb21bMVVMTCA8PCA2NF07CnNwcmludGYoeW91cl9tb20sICJpcyBmYXQiKTs=

#3 SiCrane   Moderators   -  Reputation: 9676

Like
1Likes
Like

Posted 13 December 2012 - 11:47 AM

You might want to look at this way back machine article that jpetrie wrote about master headers.

#4 mrhodes   Members   -  Reputation: 324

Like
0Likes
Like

Posted 13 December 2012 - 12:11 PM

Thank you very much SiCrane... I read that and it helps a lot.
I have had to reorder headers at times to make things work, and now I understand why :)


Michael
Michael RhodesTiger Studios Web Designhttp://tigerstudios.net




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS