pacman.controllers.examples.po.POGhosts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pacman-main Show documentation
Show all versions of pacman-main Show documentation
The main code for Ms. Pac-Man Vs Ghosts
package pacman.controllers.examples.po;
import pacman.controllers.Controller;
import pacman.controllers.IndividualGhostController;
import pacman.controllers.MASController;
import pacman.game.Game;
import java.util.EnumMap;
import java.util.Random;
import static pacman.game.Constants.*;
/**
* Created by Piers on 15/02/2016.
*/
public class POGhosts extends MASController {
public POGhosts() {
super(true, new EnumMap(GHOST.class));
controllers.put(GHOST.BLINKY, new POGhost(GHOST.BLINKY));
controllers.put(GHOST.INKY, new POGhost(GHOST.INKY));
controllers.put(GHOST.PINKY, new POGhost(GHOST.PINKY));
controllers.put(GHOST.SUE, new POGhost(GHOST.SUE));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy