Class MyPacMan
java.lang.Object
- All Implemented Interfaces:
IPacManController
,java.awt.event.KeyListener
,java.util.EventListener
public final class MyPacMan extends PacManHijackController
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MyPacMan()
-
Method Summary
Methods inherited from class game.controllers.pacman.PacManHijackController
getAction, keyPressed, keyReleased, keyTyped, reset
-
Constructor Details
-
MyPacMan
public MyPacMan()
-
-
Method Details
-
tick
Description copied from interface:IPacManController
Perform action-selection based on information fromGame
.
Persist your decision withinPacManAction
that is periodically read viaIPacManController.getAction()
.- Specified by:
tick
in interfaceIPacManController
- Overrides:
tick
in 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)
-