Interface Movable

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

public interface Movable
Defines the methods that any movable entity must have.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Defines the signature of the method that manages the movement of any movable entity.
    void
    Defines the signatures of the method that manages the direction in which any movable entity moves.
  • Method Details

    • move

      void move()
      Defines the signature of the method that manages the movement of any movable entity.
    • setDirection

      void setDirection(Direction direction)
      Defines the signatures of the method that manages the direction in which any movable entity moves.
      Parameters:
      direction - New direction to set