Adds an additional optional time argument to Scheduler.Speed.add(), which
defines an initial time to schedule the item. If the item is repeated then
subsequent scheduling will use 1/item.getSpeed() as before.
Also exposes an item's time through a Scheduler.getTimeOf(item) method. In
combination, these two changes allow clients to completely recreate the
state of the speed scheduler at a given point, useful when saving and
restoring a game state.
Adds an additional optional time argument to Scheduler.Speed.add(), which defines an initial time to schedule the item. If the item is repeated then subsequent scheduling will use 1/item.getSpeed() as before.
Also exposes an item's time through a Scheduler.getTimeOf(item) method. In combination, these two changes allow clients to completely recreate the state of the speed scheduler at a given point, useful when saving and restoring a game state.