diff --git a/src/dijkstra/VertexInterface.java b/src/dijkstra/VertexInterface.java index fcff284..4c20442 100644 --- a/src/dijkstra/VertexInterface.java +++ b/src/dijkstra/VertexInterface.java @@ -2,8 +2,6 @@ package dijkstra; public interface VertexInterface { - /** Compare a Vertex to another */ - public boolean compareTo(VertexInterface vertex) ; - public String getLabel() ; + } diff --git a/src/maze/Box.java b/src/maze/Box.java index 63b34cf..0845613 100644 --- a/src/maze/Box.java +++ b/src/maze/Box.java @@ -26,13 +26,6 @@ public abstract class Box } - public boolean compareTo(VertexInterface vertex) { - if (this.getLabel() == vertex.getLabel()) { - return true ; - } - return false ; - } - public boolean isWalkable() { return true ; } @@ -49,41 +42,17 @@ public abstract class Box return neighbourList; } - public void setNeighbourList(ArrayList neighbourList) { - this.neighbourList = neighbourList; - } - public int getX() { return x; } - public void setX(int x) { - this.x = x; - } - public int getY() { return y; } - public void setY(int y) { - this.y = y; - } - public String getLabel() { return label; } - - public void setLabel(String label) { - this.label = label; - } - - public Maze getMaze() { - return maze; - } - - public void setMaze(Maze maze) { - this.maze = maze; - } public String toString() { return "Label: " + label + ", x: " + x + ", y: " + y;