Package com.avrix.events
Class OnHitZombieEvent
java.lang.Object
com.avrix.events.Event
com.avrix.events.OnHitZombieEvent
Triggered when a character hits a zombie.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetting the event nameabstract void
handleEvent
(zombie.characters.IsoZombie zombie, zombie.characters.IsoGameCharacter character, zombie.characters.BodyDamage.BodyPartType bodyPartType, zombie.inventory.types.HandWeapon handWeapon) Called Event Handling Method
-
Constructor Details
-
OnHitZombieEvent
public OnHitZombieEvent()
-
-
Method Details
-
getEventName
Getting the event name- Specified by:
getEventName
in classEvent
- 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.
-