ROT.EventQueue
is a very simple tool to maintain a sorted priority list. It offers basic API for adding, removing and retrieving stuff. For most scenarios, the Event queue is too low-level and you might want to use a specific scheduler instead.
Time units in Event queue are abstract and do not need to be integers. The getTime()
method can be used to retrieve the amount of already elapsed time units.