Class ChaseAggressive
java.lang.Object
edu.uoc.pacman.model.entities.characters.ghosts.chase.ChaseAggressive
- All Implemented Interfaces:
ChaseBehaviour
It implements the
Its target position is directly Pacman's position.
ChaseBehaviour
interface according to an aggressive behaviour.Its target position is directly Pacman's position.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChasePosition
(Ghost ghost) The ghost will chase the Pacman's current direction.
-
Constructor Details
-
ChaseAggressive
public ChaseAggressive()
-
-
Method Details
-
getChasePosition
The ghost will chase the Pacman's current direction.- Specified by:
getChasePosition
in interfaceChaseBehaviour
- Parameters:
ghost
- Ghost object that chases.- Returns:
- Pacman's current position.
- Since:
- getChasePosition in interface
ChaseBehaviour
.
-