/** * Information related to an {X,Y} maze location. Contains an added field for * a related Move. */ public class Location { private int x; private int y; private Move move; public Location(int x, int y, Move move) { this.x = x; this.y = y; this.move = move; } public int getX() { return this.x; } public int getY() { return this.y; } public Move getMove() { return this.move; } public boolean equals(Object o) { if (o instanceof Location) { Location l = (Location)o; return this.x == l.x && this.y == l.y; } return false; } }