I’ve just finished implementing a gamestate manager, and I seek opinions, advice and comment from the gallery.
This is the third incarnation in as many days, however I’m pretty happy with the advantages that come with the design.
Here’s some quick notes I shoved into a ReadMe file that describe the key concepts:
What I forgot to mention? GameStates are not aware they are being managed, or that a manager class exists.
This is achieved by implementing a custom event handler in the manager: