Class OnUseVehicleEvent

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

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

    • OnUseVehicleEvent

      public OnUseVehicleEvent()
  • 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 pressedNotTapped)
      Called Event Handling Method
      Parameters:
      player - The player who's driving the vehicle.
      baseVehicle - The vehicle which the player is driving.
      pressedNotTapped - Whether the player had been keeping the accelerator pressed or if it was just a tap.