パッケージ simulation.event

インタフェース TimerEvent

既知の実装クラスのリスト:
PeriodicDamageEvent, SimpleTimerEvent

public interface TimerEvent
Contract for all time-driven events managed by the CombatSimulator event queue. Events are stored in a priority queue ordered by getNextTickTime() and are fired by CombatSimulator.advanceTime(double) as simulation time reaches each event's scheduled tick. After ticking, an event is re-queued unless isFinished(double) returns true.

Typical use-cases include periodic DoT (e.g. Electro-Charged ticks), buff expiry notifications, and cooldown timers.

  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    double
    Returns the simulation time at which this event's next tick(simulation.CombatSimulator) should fire.
    boolean
    isFinished(double currentTime)
    Returns whether this event has completed and should be removed from the queue.
    void
    Executes the event's logic at the current simulation time.