パッケージ simulation

インタフェース ActionListener


public interface ActionListener
Observer interface for monitoring discrete attack actions within the combat simulation. Implementations are registered via CombatSimulator.addListener(simulation.ActionListener) and are notified each time a character executes an AttackAction through CombatSimulator.performAction(String, AttackAction).
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    void
    onAction(String actorName, AttackAction action, double time)
    Invoked after a character performs an AttackAction and before simulation time is advanced for that action's animation duration.
  • メソッドの詳細

    • onAction

      void onAction(String actorName, AttackAction action, double time)
      Invoked after a character performs an AttackAction and before simulation time is advanced for that action's animation duration.
      パラメータ:
      actorName - the name of the character who performed the action
      action - the AttackAction that was executed
      time - the simulation time (in seconds) at which the action occurred