All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pacman.controllers.examples.po.POCommGhosts Maven / Gradle / Ivy

There is a newer version: 2.0.1.0
Show newest version
package pacman.controllers.examples.po;

import pacman.controllers.IndividualGhostController;
import pacman.controllers.MASController;
import pacman.game.Constants.DM;
import pacman.game.Constants.GHOST;
import pacman.game.Constants.MOVE;
import pacman.game.Game;
import pacman.game.comms.BasicMessage;
import pacman.game.comms.Message;
import pacman.game.comms.Messenger;

import java.util.EnumMap;
import java.util.Random;

/**
 * Created by pwillic on 25/02/2016.
 */
public class POCommGhosts extends MASController {

    public POCommGhosts() {
        this(50);
    }

    public POCommGhosts(int TICK_THRESHOLD) {
        super(true, new EnumMap(GHOST.class));
        controllers.put(GHOST.BLINKY, new POCommGhost(GHOST.BLINKY, TICK_THRESHOLD));
        controllers.put(GHOST.INKY, new POCommGhost(GHOST.INKY, TICK_THRESHOLD));
        controllers.put(GHOST.PINKY, new POCommGhost(GHOST.PINKY, TICK_THRESHOLD));
        controllers.put(GHOST.SUE, new POCommGhost(GHOST.SUE, TICK_THRESHOLD));
    }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy