パッケージ simulation

インタフェース CombatSimulator.ReactionListener

既知の実装クラスのリスト:
Columbina
含まれているクラス:
CombatSimulator

public static interface CombatSimulator.ReactionListener
Observer interface for elemental reaction events. Implementations are registered via CombatSimulator.addReactionListener(simulation.CombatSimulator.ReactionListener) and are called whenever an element application triggers a reaction, including synthetic Lunar reaction events.
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    void
    onReaction(ReactionResult result, Character source, double time, CombatSimulator sim)
    Invoked when an elemental reaction occurs.
  • メソッドの詳細

    • onReaction

      void onReaction(ReactionResult result, Character source, double time, CombatSimulator sim)
      Invoked when an elemental reaction occurs.
      パラメータ:
      result - the ReactionResult describing the reaction type and any associated multipliers or damage
      source - the Character whose attack triggered the reaction
      time - the simulation time in seconds at which the reaction occurred
      sim - the CombatSimulator managing the current simulation