BlueWolf
Can't you just open two separate views one the same file?
You can, but that is not as convenient as having the files split up, because you'd still have to hunt for where in the file you wanted to view. So I'd have to teach Emacs about, like, some known comment structure or something that it could "jump to" when I wanted to open a view to the implementation part of things, etc. So having two files is easier than writing that, since I suck at eLisp :P
Whether you include player first or you declare gameState struct first you get error. So I could imagine splitting player.cpp into .cpp and .h could help here
Yes, if need to interleave structs and functions for declaration order, then you need to split files up that way, definitely. But again, that's just because most C++ compilers are stupid - there actually
have already been compilers where you don't need to have declarations sorted, it sorts them for you (see
http://dl.acm.org/citation.cfm?id=288284 for an example). Unfortunately it does not seem to be the norm :(
- Casey