Ogre AI flow - AlexisBliesener/Bewitched GitHub Wiki

graph TD
    A[Patrolling] -- Player Spotted --> B[Chase]
    B -- Far from player and off cooldown --> E[Boulder Throw]
    B -- In surrounding range --> C[Surround]
    B -- Player unreachable --> A
    C -- Out of surrounding range --> B
    C -- Attack from surrounding --> D[Bat Swing]
    C -- Attack from player proximity --> D
    D -- Swing over --> B
    E -- Throw over --> B