Début TP. Pas encore implémenté la référence des Box concrètes sur le Maze

This commit is contained in:
antograb authored and antograb committed 2017-10-27 19:38:00 +02:00
commit ca8048efc5
6 files changed
+111

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
public class Maze {
int dimensionX ;
int dimensionY ;
int[][] maze ;
public Maze(int x, int y) {
this.dimensionX = x ;
this.dimensionY = y ;
this.maze = new int[dimensionX][dimensionY] ;
}
public int getDimensionX() {
return dimensionX;
}
public void setDimensionX(int dimensionX) {
this.dimensionX = dimensionX;
}
public int getDimensionY() {
return dimensionY;
}
public void setDimensionY(int dimensionY) {
this.dimensionY = dimensionY;
}
public int[][] getMaze() {
return maze;
}
public void setMaze(int[][] maze) {
this.maze = maze;
}
}