パッケージ 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).-
メソッドの概要
修飾子とタイプメソッド説明voidonAction(String actorName, AttackAction action, double time) Invoked after a character performs anAttackActionand before simulation time is advanced for that action's animation duration.
-
メソッドの詳細
-
onAction
Invoked after a character performs anAttackActionand before simulation time is advanced for that action's animation duration.- パラメータ:
actorName- the name of the character who performed the actionaction- theAttackActionthat was executedtime- the simulation time (in seconds) at which the action occurred
-