All Implemented Interfaces:
Hitable, Movable, Scorable

public class Inky extends Ghost
Represents an Inky (bluish) ghost.
  • Field Details

    • POINTS

      private static final int POINTS
      This attribute stores the amount of points that the Inky ghost gives.
      See Also:
  • Constructor Details

    • Inky

      public Inky(Position startPosition, Direction direction, Behaviour behaviour, Level level)
      Constructor with arguments.
      The value of the scatterPosition is (LEVEL.WIDTH,LEVEL.HEIGHT).
      The value of the sprite is Sprite.INKY.
      It assigns to chaseBehaviour a ChasePatrol object.
      Parameters:
      startPosition - The position where the ghost is in the beginning (value given by the level configuration file).
      direction - Direction which the ghost faces in the beginning.
      behaviour - Current behaviour of the ghost.
      level - Reference to the current level object.
  • Method Details

    • getPoints

      public int getPoints()
      Getter of the attribute POINTS.
      Returns:
      Returns the value of the attribute POINTS.
      Since:
      getPoints in interface Scorable.