Package com.avrix.events
Class OnWeaponHitCharacterEvent
java.lang.Object
com.avrix.events.Event
com.avrix.events.OnWeaponHitCharacterEvent
Triggered when a character has been hit by a weapon.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetting the event nameabstract void
handleEvent
(zombie.characters.IsoGameCharacter wielder, zombie.characters.IsoGameCharacter character, zombie.inventory.types.HandWeapon handWeapon, Float damage) Called Event Handling Method
-
Constructor Details
-
OnWeaponHitCharacterEvent
public OnWeaponHitCharacterEvent()
-
-
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.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.
-