Package game.controllers.ghosts.examples
Class RandomGhosts
java.lang.Object
game.controllers.ghosts.GhostsControllerBase
game.controllers.ghosts.examples.RandomGhosts
- All Implemented Interfaces:
IGhostsController
public final class RandomGhosts extends GhostsControllerBase
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RandomGhosts()
-
Method Summary
Methods inherited from class game.controllers.ghosts.GhostsControllerBase
getActions, getGhostCount, nextLevel, reset
-
Constructor Details
-
RandomGhosts
public RandomGhosts()
-
-
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.
-