pacman.controllers.examples.po.mcts.prediction.GhostLocation 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.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