StateMachine ============ The ``StateMachine`` class is a finite state machine implementation that allows defining states and transitions between them, and activating a specific state based on its transitions conditions. Examples ^^^^^^^^ `AI Town `_ ------------------------------------------------------------------------------------------------- .. image:: ../_images/ai-town-spawner.png :alt: ai simulation spawner image :scale: 100% `code `__ * AI state machine * coroutine for food interval spawn `AI Simulation `_ ------------------------------------------------------------------------------------------------------------- .. image:: ../_images/ai-simulation-spawner.png :alt: ai simulation spawner image :scale: 100% `code `__ * fog of war shader * AI state machine * coroutine for food interval spawn