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

pacman.controllers.examples.po.mcts.prediction.GhostLocation Maven / Gradle / Ivy

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

import pacman.game.Constants;

/**
 * Created by pwillic on 13/05/2016.
 */
public class GhostLocation {
    private int index;
    private Constants.MOVE lastMoveMade;
    private double probability;

    public GhostLocation(int index, Constants.MOVE lastMoveMade, double probability) {
        this.index = index;
        this.lastMoveMade = lastMoveMade;
        this.probability = probability;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public Constants.MOVE getLastMoveMade() {
        return lastMoveMade;
    }

    public void setLastMoveMade(Constants.MOVE lastMoveMade) {
        this.lastMoveMade = lastMoveMade;
    }

    public double getProbability() {
        return probability;
    }

    public void setProbability(double probability) {
        this.probability = probability;
    }

    @Override
    public String toString() {
        return "GhostLocation{" +
                "index=" + index +
                ", lastMoveMade=" + lastMoveMade +
                ", probability=" + probability +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy