Often you'll see people arguing over differences in finite state machines vs state machines, or state patterns vs state machines, etc. In this video I used the terms interchangeably, but on a deeper level they're not always the same. Here's some articles that explain:
https://1gravityllc.medium.com/the-super-state-design-pattern-166127ce7c9a
https://levelup.gitconnected.com/finite-state-machine-and-its-implementation-with-state-pattern-from-scratch-9732787a1277
Refactoring Guru (design patterns and stuff):
https://refactoring.guru
Tutorial Playlist:
https://youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy
Repository:
https://github.com/RoundBearChoi/CPP_Tutorial_Projects
Any questions/comments? Join us on discord:
https://discord.gg/hAFTgcA
Intro: (0:00)
Sample Code: (1:05)
Transitions: (5:46)
virtual constructors? (10:32)
Outro: (12:59)
Social
twitter: https://twitter.com/roundbeargames
facebook: https://facebook.com/roundbeargames17
hive: @roundbeargames/posts
reddit: https://reddit.com/user/roundbeargames
linkedin: https://linkedin.com/in/jangwon-choi-15041a9a
Patreon:
https://patreon.com/roundbeargames
Channel Memberships:
https://youtube.com/roundbeargames/join