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

pacman.entries.ghosts.MyGhosts Maven / Gradle / Ivy

There is a newer version: 2.0.1.0
Show newest version
package pacman.entries.ghosts;

import java.util.EnumMap;

import pacman.controllers.Controller;
import pacman.game.Constants.GHOST;
import pacman.game.Constants.MOVE;
import pacman.game.Game;

/*
 * This is the class you need to modify for your entry. In particular, you need to
 * fill in the getActions() method. Any additional classes you write should either
 * be placed in this package or sub-packages (e.g., game.entries.ghosts.mypackage).
 */
public class MyGhosts extends Controller> {
    private EnumMap myMoves = new EnumMap(GHOST.class);

    public EnumMap getMove(Game game, long timeDue) {
        myMoves.clear();

        //Place your game logic here to play the game as the ghosts

        return myMoves;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy