Package game.controllers.ghosts.examples
Class Legacy2TheReckoning
java.lang.Object
game.controllers.ghosts.GhostsControllerBase
game.controllers.ghosts.examples.Legacy2TheReckoning
- All Implemented Interfaces:
IGhostsController
public class Legacy2TheReckoning extends GhostsControllerBase
-
Field Summary
Fields Modifier and Type Field Description static intCROWDED_DISTANCEstatic intPACMAN_DISTANCEstatic intPILL_PROXIMITY -
Constructor Summary
Constructors Constructor Description Legacy2TheReckoning() -
Method Summary
Methods inherited from class game.controllers.ghosts.GhostsControllerBase
getActions, getGhostCount, nextLevel, reset
-
Field Details
-
CROWDED_DISTANCE
public static final int CROWDED_DISTANCE- See Also:
- Constant Field Values
-
PACMAN_DISTANCE
public static final int PACMAN_DISTANCE- See Also:
- Constant Field Values
-
PILL_PROXIMITY
public static final int PILL_PROXIMITY- See Also:
- Constant Field Values
-
-
Constructor Details
-
Legacy2TheReckoning
public Legacy2TheReckoning()
-
-
Method Details
-
tick
Description copied from interface:IGhostsControllerPerform action-selection for all ghosts based on information fromGame.
Persist your decision withinPacManActionthat is periodically read via#getAction().- Specified by:
tickin interfaceIGhostsController- Specified by:
tickin classGhostsControllerBase- Parameters:
game- current state of the gametimeDue- how much time (in millis) do you have for your action-selection before#getAction()will get called.
-