This enum most likely drives which pattern?
enum State { Idle, Run, Jump, Fall }
- A finite state machine
- A binary search tree
- A publish subscribe bus
- A dependency injector
Discrete states like Idle/Run/Jump are the core of a state machine.
Play Game Dev ▸