Class OnEquipPrimaryEvent

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

public abstract class OnEquipPrimaryEvent extends Event
Triggered when a character equips an item in its primary slot.
  • Constructor Details

    • OnEquipPrimaryEvent

      public OnEquipPrimaryEvent()
  • 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 character, zombie.inventory.InventoryItem inventoryItem)
      Called Event Handling Method
      Parameters:
      character - The character who's equipping the item.
      inventoryItem - The item that is being equipped in the primary slot.