Interface ChaseBehaviour

All Known Implementing Classes:
ChaseAggressive, ChaseAmbush, ChaseCoward, ChasePatrol

public interface ChaseBehaviour
Defines the methods that any character (namely, ghost) must have to chase.
Thanks to this interface, we are using the Strategy design pattern. More info here.
  • Method Summary

    Modifier and Type
    Method
    Description
    Defines the signature of the method to be used to get the position where any character (namely, ghosts) must to go to.
  • Method Details

    • getChasePosition

      Position getChasePosition(Ghost ghost)
      Defines the signature of the method to be used to get the position where any character (namely, ghosts) must to go to.
      Parameters:
      ghost - Ghost object that wants to chase.
      Returns:
      Position where the ghost must go to.