Interface Hitable

All Known Implementing Classes:
Blinky, Character, Clyde, Ghost, Inky, Pacman, Pinky

public interface Hitable
Defines the methods that any hitable entity must have.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hit()
    Defines the signature of the method that manages the hit action of any hitable entity.
  • Method Details

    • hit

      boolean hit()
      Defines the signature of the method that manages the hit action of any hitable entity.
      Returns:
      true if the entity has hit any other entity. Otherwise, false.