Class OnVehicleHornEvent

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

public abstract class OnVehicleHornEvent extends Event
Triggered when a character is using a vehicle horn.
  • Constructor Details

    • OnVehicleHornEvent

      public OnVehicleHornEvent()
  • 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.IsoPlayer player, zombie.vehicles.BaseVehicle baseVehicle, Boolean pressed)
      Called Event Handling Method
      Parameters:
      player - The player who's driving the vehicle.
      baseVehicle - The vehicle that the player is driving.
      pressed - Whether the vehicle horn is being pressed.