java.lang.Object
edu.uoc.pacman.model.entities.characters.ghosts.chase.ChaseAggressive
All Implemented Interfaces:
ChaseBehaviour

public class ChaseAggressive extends Object implements ChaseBehaviour
It implements the ChaseBehaviour interface according to an aggressive behaviour.
Its target position is directly Pacman's position.
  • Constructor Details

    • ChaseAggressive

      public ChaseAggressive()
  • Method Details

    • getChasePosition

      public Position getChasePosition(Ghost ghost)
      The ghost will chase the Pacman's current direction.
      Specified by:
      getChasePosition in interface ChaseBehaviour
      Parameters:
      ghost - Ghost object that chases.
      Returns:
      Pacman's current position.
      Since:
      getChasePosition in interface ChaseBehaviour.