DEV Community

Discussion on: Resolving the game state machine cyclic dependency

Collapse
 
johannesvollmer profile image
Johannes Vollmer

Great text. You probably forgot to add virtual to your State methods void onEnter() {} and onExit on that first C++ example, though. :)

Collapse
 
technocoder profile image
Technocoder

Ahh, you're completely right. Thanks for the heads up!