I would probably make a game state class rather than doing all those switch statements in your GameEngine functions.
This could either be a polymorphic class, or a template class with an integer template argument, or a class that does these switch statements for you.
I would do a polymorphic class. vfunc overhead should be negligible as the gamestate should rarely change.
same with map location.
nfries88Member Since 11 Nov 2006
Offline Last Active May 23 2016 11:47 PM