Turns

by ACWraith
Handle turns for any datum (whether it's a mob or not). [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://ACWraith.Turns##version=3

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://ACWraith.Turns##version=3

848 downloads
Version 3
Date added: Aug 18 2004
Last updated: Jul 8 2009
7 fans
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.
  1. You override a small list of procs for whatever datum you want to take turns.
  2. 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.