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: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.
-