State Management Module
Purpose of Module
State management is vital when designing complex game mechanics. It involves defining the set of states a game entity can occupy and specifying the corresponding transitions to other states. In the context of action games, this encompasses mapping buttons to actions and determining which actions are accessible from any given state.
Fray provides an extendable general purpose hierarchical state machine which can be used to define state for entities such as combatants.