Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

TempGameConstants Namespace Reference


Detailed Description

Some constants used internally by the CGame class. I've put these outside of the CGame class partially because MSVC++ wouldn't let me put string constants in a class (see the annoyance below), but also because these constant values should really be passed in to the CGame object from an external source, not hard-coded into the CGame object itself; putting such constants into a separate namespace serves as a reminder that they don't belong in the CGame class.

Todo:
Remove this namespace eventually.

C++ Annoyance:
I originally tried to put the string constants contained in this namespace in the CGame class as static consts, but MSVC++ 7 won't let them--it only lets you put integral types as consts in classes (gcc will let you static const anything, however). Looks like a non-standard C++ implementation on Microsoft's part.

Granted, it seems like there's a few really intuitive language features that aren't in the C++ standard that every non-anal compiler supports but gcc doesn't, so I'm not trying to glorify gcc here either.


Generated on Wed Aug 27 11:59:31 2003 for GFW by doxygen 1.3.3