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 int
CROWDED_DISTANCE
static int
PACMAN_DISTANCE
static int
PILL_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:IGhostsController
Perform action-selection for all ghosts based on information fromGame
.
Persist your decision withinPacManAction
that is periodically read via#getAction()
.- Specified by:
tick
in interfaceIGhostsController
- Specified by:
tick
in 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.
-