The timer is preprogrammed with a series of tick interval triggers, such that the timer only ticks when the time remaining matches one of these triggers. When the timer ticks, the lobby players are informed about the time remaining, and when the timer finishes, the arena is started. If the {@code display-timer-as-level} flag is set, the timer will tick once persecond, updating the player levels.
The timer realizes a type of Null Object pattern if the duration of the timer (i.e. the value of the auto-start-timer setting) is 0, where calling the timer's methods does nothing.
|
|