Class PhysicalAttackEvent

All Implemented Interfaces:
Serializable, Cloneable, HasValue, Notification
Direct Known Subclasses:
AfterPhysicalAttackEvent, BeforePhysicalAttackEvent

public class PhysicalAttackEvent extends ValueEvent
An attacker (the EntityReference.EVENT_SOURCE) attacked the defender and dealt EventValueProvider damage.
See Also:
  • Constructor Details

    • PhysicalAttackEvent

      public PhysicalAttackEvent(GameContext context, Actor attacker, Actor defender, int damageDealt)
  • Method Details

    • getAttacker

      public Actor getAttacker()
    • getDamageDealt

      public int getDamageDealt()
    • getDefender

      public Actor getDefender()