Class OnHitZombieEvent

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

public abstract class OnHitZombieEvent extends Event
Triggered when a character hits a zombie.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Getting the event name
    abstract void
    handleEvent(zombie.characters.IsoZombie zombie, zombie.characters.IsoGameCharacter character, zombie.characters.BodyDamage.BodyPartType bodyPartType, zombie.inventory.types.HandWeapon handWeapon)
    Called Event Handling Method

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OnHitZombieEvent

      public OnHitZombieEvent()
  • 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.IsoZombie zombie, zombie.characters.IsoGameCharacter character, zombie.characters.BodyDamage.BodyPartType bodyPartType, zombie.inventory.types.HandWeapon handWeapon)
      Called Event Handling Method
      Parameters:
      zombie - The zombie that is being hit.
      character - The character who's hitting the zombie.
      bodyPartType - The body part where the zombie was hit.
      handWeapon - The hand weapon used to hit the zombie.