[WIP] Useless code removal and code cleanup #5

Manually merged
regar42 merged 5 commits from fixUnneededCode into lastDijsktraClasses 2017-12-10 16:48:34 +00:00
2 changed files with 1 additions and 34 deletions
Showing only changes of commit d836c2c9f0 - Show all commits

No files matched your search

+1 -3
View File
@@ -2,8 +2,6 @@ package dijkstra;
public interface VertexInterface {
/** Compare a Vertex to another */
public boolean compareTo(VertexInterface vertex) ;
public String getLabel() ;
}
-31
View File
@@ -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<Box> 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;