Class OnObjectCollideEvent

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

public abstract class OnObjectCollideEvent extends Event
Triggered when a character collides with an object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Getting the event name
    abstract void
    handleEvent(zombie.characters.IsoGameCharacter character, zombie.characters.IsoZombie door)
    Called Event Handling Method
    abstract void
    handleEvent(zombie.characters.IsoGameCharacter character, zombie.iso.IsoGridSquare door)
    Called Event Handling Method
    abstract void
    handleEvent(zombie.characters.IsoGameCharacter character, zombie.iso.objects.IsoDoor door)
    Called Event Handling Method
    abstract void
    handleEvent(zombie.characters.IsoGameCharacter character, zombie.iso.objects.IsoThumpable door)
    Called Event Handling Method
    abstract void
    handleEvent(zombie.characters.IsoGameCharacter character, zombie.iso.objects.IsoWindow door)
    Called Event Handling Method

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OnObjectCollideEvent

      public OnObjectCollideEvent()
  • 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.iso.objects.IsoDoor door)
      Called Event Handling Method
      Parameters:
      character - The character who's colliding with another object.
      door - The object that is being collided with.
    • handleEvent

      public abstract void handleEvent(zombie.characters.IsoGameCharacter character, zombie.iso.IsoGridSquare door)
      Called Event Handling Method
      Parameters:
      character - The character who's colliding with another object.
      door - The object that is being collided with.
    • handleEvent

      public abstract void handleEvent(zombie.characters.IsoGameCharacter character, zombie.iso.objects.IsoThumpable door)
      Called Event Handling Method
      Parameters:
      character - The character who's colliding with another object.
      door - The object that is being collided with.
    • handleEvent

      public abstract void handleEvent(zombie.characters.IsoGameCharacter character, zombie.iso.objects.IsoWindow door)
      Called Event Handling Method
      Parameters:
      character - The character who's colliding with another object.
      door - The object that is being collided with.
    • handleEvent

      public abstract void handleEvent(zombie.characters.IsoGameCharacter character, zombie.characters.IsoZombie door)
      Called Event Handling Method
      Parameters:
      character - The character who's colliding with another object.
      door - The object that is being collided with.