Class GhostsControllerBase

java.lang.Object
game.controllers.ghosts.GhostsControllerBase
All Implemented Interfaces:
IGhostsController
Direct Known Subclasses:
AttractRepelGhosts, Legacy, Legacy2TheReckoning, RandomGhosts

public abstract class GhostsControllerBase
extends java.lang.Object
implements IGhostsController
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected int ghostCount  
    protected GhostsActions input  
  • Constructor Summary

    Constructors 
    Constructor Description
    GhostsControllerBase​(int ghostCount)  
  • Method Summary

    Modifier and Type Method Description
    GhostsActions getActions()
    Return GhostsActions containing Ghosts decision, what to do next.
    int getGhostCount()
    How many ghosts (0-4) this controller control.
    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 for all ghosts based on information from Game.

    Methods inherited from class java.lang.Object

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