This library manages the sorting and calling of turns. Any datum, whether a mob or not, can be allowed to take turns in one or more TurnHandlers. If desired, each datum can be allowed to take multiple turns per round. If also desired, there is a hook for derivative types to sort a round's order of turns differently.
- You override a small list of procs for whatever datum you want to take turns.
- You add the datums to the TurnHandler and start/end turns at will. The handler will know who goes next and should not be bothered if a datum is removed.
This library has been tested in games such as
PathWrath,
PathWrath 2, and
Star*Scurry.