Class OnWeaponHitCharacterEvent

java.lang.Object
com.avrix.events.Event
com.avrix.events.OnWeaponHitCharacterEvent

public abstract class OnWeaponHitCharacterEvent extends Event
Triggered when a character has been hit by a weapon.
  • Constructor Details

    • OnWeaponHitCharacterEvent

      public OnWeaponHitCharacterEvent()
  • Method Details

    • getEventName

      public String getEventName()
      Getting the event name
      Specified by:
      getEventName in class Event
      Returns:
      name of the event being implemented
    • handleEvent

      public abstract void handleEvent(zombie.characters.IsoGameCharacter wielder, zombie.characters.IsoGameCharacter character, zombie.inventory.types.HandWeapon handWeapon, Float damage)
      Called Event Handling Method
      Parameters:
      wielder - The character whose weapon hit another character.
      character - The character who's been hit by another character.
      handWeapon - The hand weapon used to hit the character.
      damage - The damage inflicted to the character who's been hit.