パッケージ simulation

インタフェース ParticleListener


public interface ParticleListener
Observer interface for monitoring elemental particle generation events. Implementations are registered via CombatSimulator.addParticleListener(simulation.ParticleListener) and are notified whenever particles are emitted through CombatSimulator.notifyParticle(Element, double). Particles feed into the EnergyManager to fill character energy.
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    void
    onParticle(Element element, double count, double time)
    Invoked when elemental particles are generated during the simulation.
  • メソッドの詳細

    • onParticle

      void onParticle(Element element, double count, double time)
      Invoked when elemental particles are generated during the simulation.
      パラメータ:
      element - the element of the generated particles (determines off-field ER efficiency)
      count - the number of particles generated
      time - the simulation time (in seconds) at which the particles were generated