Class PacManControllerBase

java.lang.Object
game.controllers.pacman.PacManControllerBase
All Implemented Interfaces:
IPacManController
Direct Known Subclasses:
PacManHijackController

public abstract class PacManControllerBase
extends java.lang.Object
implements IPacManController
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected Game game  
    protected Maze maze  
    protected PacManAction pacman  
  • Constructor Summary

    Constructors 
    Constructor Description
    PacManControllerBase()  
  • Method Summary

    Modifier and Type Method Description
    PacManAction getAction()
    Return PacManAction containing Ms Pac-Man decision, what to do next.
    void killed()
    MS PacMan has been just eaten by a ghost.
    void nextLevel​(Game game)
    Level has been changed!
    void reset​(Game game)
    Resets the controller before game starts.
    abstract void tick​(Game game, long timeDue)
    Perform action-selection based on information from Game.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait