Comment Comment by _the_inflator And it works! I learned a lot about preventing magic with this here: https://gameprogrammingpatterns.com/state.htmlFor me - and I mostly do frontend apps now - I always advise to go for state pattern instead of complex if/thens. Thanks to the aforementioned article. parent _the_inflator 6 years ago
For me - and I mostly do frontend apps now - I always advise to go for state pattern instead of complex if/thens. Thanks to the aforementioned article.