create a registry class that allows you to access objects globally.
the one question is:
*should it be static/hard-coded?
** PRO: .h file tells you what is available and the types
** PRO: spelling is checked by the compiler
** CON: must be updated with every change => full recompile of most classes
** CON: not as flexible
-OR -
*should it just be generic and coded by a key/ID
** PRO: more flexible, changes can happen on the fly
** CON: requires type casting every time an object is accessed
** CON: no where to look for actual key => confusing, could lead to typos
also, what all should be included?
ok, I think we've answered that question already. however, there is too much in there right now. Not everything needs to know about different GuiPanels like the Splash screen and the dungeon viewer, however, there should be ways of globally displaying messages, setting/checking game status, etc. In other words, the things in the registry should be the "global" data, not visual components