Début TP. Pas encore implémenté la référence des Box concrètes sur le Maze
This commit is contained in:
commit
ca8048efc5
6 files changed
+111
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user