Package game.controllers.pacman.examples
Class NearestPillPacManVS
java.lang.Object
game.controllers.pacman.PacManControllerBase
game.controllers.pacman.PacManHijackController
game.controllers.pacman.examples.NearestPillPacManVS
- All Implemented Interfaces:
IPacManController,java.awt.event.KeyListener,java.util.EventListener
public final class NearestPillPacManVS extends PacManHijackController
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NearestPillPacManVS() -
Method Summary
Methods inherited from class game.controllers.pacman.PacManHijackController
getAction, keyPressed, keyReleased, keyTyped, reset
-
Constructor Details
-
NearestPillPacManVS
public NearestPillPacManVS()
-
-
Method Details
-
tick
Description copied from interface:IPacManControllerPerform action-selection based on information fromGame.
Persist your decision withinPacManActionthat is periodically read viaIPacManController.getAction().- Specified by:
tickin interfaceIPacManController- Overrides:
tickin classPacManHijackController- Parameters:
game- current state of the gametimeDue- how much time (in millis) do you have for your action-selection beforeIPacManController.getAction()will get called.
-
main
public static void main(java.lang.String[] args)
-