Package com.avrix.events
Class OnWeaponHitXpEvent
java.lang.Object
com.avrix.events.Event
com.avrix.events.OnWeaponHitXpEvent
Triggered when a player is gaining XP for a successful hit.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetting the event nameabstract void
handleEvent
(zombie.characters.IsoPlayer player, zombie.inventory.types.HandWeapon handWeapon, zombie.characters.IsoGameCharacter character, Float damageSplit) Called Event Handling Method
-
Constructor Details
-
OnWeaponHitXpEvent
public OnWeaponHitXpEvent()
-
-
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.IsoPlayer player, zombie.inventory.types.HandWeapon handWeapon, zombie.characters.IsoGameCharacter character, Float damageSplit) Called Event Handling Method- Parameters:
player
- The player who's wielding the weapon.handWeapon
- The hand weapon used to perform the attack.character
- The character who's being hit.damageSplit
- The damage split of the hit.
-