/** * Compares this object against the provided MazeCoordinates object * * @param mc - the MazeCoordinate object this object will be compared against * @return - true if the both coordinates are equal, false otherwise */ public boolean equals(MazeCoordinates mc) { return mc.getRow() == row && mc.getCol() == column; }
/** * Set this object's "coordinates" equal to those of the provided MazeCoordinate * * @param mc - the MazeCoordinate object containing the new desired "coordinates" */ public void setCoordinates(MazeCoordinates mc) { this.row = mc.getRow(); this.column = mc.getCol(); }