From: Robert S. <the...@gm...> - 2008-03-30 15:28:17
|
Hi, since long STK has some global variables like menu_manager, user_config and the like. I dislike those variables flying around in nothing. Furthermore I initially wanted to name the global instance of the SDLDriver driver but did not do this because I feel that in a racing game a variable named 'driver' is utterly confusing. It is now input driver which is not completely correct since the SDLDriver cares about the screen setup as well. I therefore propose to make use of C++ namespaces and put the often used globals into it. This would make source code a bit longer (e.g. user_config may become Globals::user_config or something like that) but would make it IMHO more readable. Opinions? Regards Robert |