Avancement sur le tp. Implémentation (pas finie) des interfaces pour le
maze et Box.
This commit is contained in:
1 parent
0f7ef69441
commit
f7646c48f6
8 files changed
+75
-16
No files matched your search
@@ -1,15 +1,22 @@
|
||||
|
||||
public class Maze {
|
||||
public class Maze
|
||||
implements GraphInterface{
|
||||
|
||||
int dimensionX ;
|
||||
int dimensionY ;
|
||||
int[][] maze ;
|
||||
int[][] adjMatrix ;
|
||||
|
||||
public Maze(int x, int y) {
|
||||
public Maze(int dimensionX, int dimensionY, int[][] adjmatrix) {
|
||||
|
||||
this.dimensionX = x ;
|
||||
this.dimensionY = y ;
|
||||
this.dimensionX = dimensionX ;
|
||||
this.dimensionY = dimensionY ;
|
||||
this.maze = new int[dimensionX][dimensionY] ;
|
||||
this.adjMatrix = adjMatrix ;
|
||||
|
||||
}
|
||||
|
||||
public int getCost(VertexInterface start, VertexInterface end) {
|
||||
|
||||
}
|
||||
|
||||
@@ -39,4 +46,5 @@ public class Maze {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user