From ca8048efc59735b86be3346fd07c07fb370048be Mon Sep 17 00:00:00 2001 From: Antonin Godard Date: Fri, 27 Oct 2017 19:38:00 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20TP.=20Pas=20encore=20impl=C3=A9men?= =?UTF-8?q?t=C3=A9=20la=20r=C3=A9f=C3=A9rence=20des=20Box=20concr=C3=A8tes?= =?UTF-8?q?=20sur=20le=20Maze?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ABox.java | 9 +++++++++ Box.java | 30 ++++++++++++++++++++++++++++++ DBox.java | 10 ++++++++++ EBox.java | 10 ++++++++++ Maze.java | 42 ++++++++++++++++++++++++++++++++++++++++++ WBox.java | 10 ++++++++++ 6 files changed, 111 insertions(+) create mode 100644 ABox.java create mode 100644 Box.java create mode 100644 DBox.java create mode 100644 EBox.java create mode 100644 Maze.java create mode 100644 WBox.java diff --git a/ABox.java b/ABox.java new file mode 100644 index 0000000..be124df --- /dev/null +++ b/ABox.java @@ -0,0 +1,9 @@ + +public class ABox extends Box{ + + public ABox (int x, int y) { + + super(x,y) ; + } + +} diff --git a/Box.java b/Box.java new file mode 100644 index 0000000..52998eb --- /dev/null +++ b/Box.java @@ -0,0 +1,30 @@ + +public class Box { + + private int x ; + private int y ; + + public Box (int x, int y) { + + this.x = x ; + this.y = y ; + + } + + 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; + } + +} diff --git a/DBox.java b/DBox.java new file mode 100644 index 0000000..9e13a16 --- /dev/null +++ b/DBox.java @@ -0,0 +1,10 @@ + +public class DBox extends Box{ + + public DBox (int x, int y) { + + super(x,y) ; + + } + +} diff --git a/EBox.java b/EBox.java new file mode 100644 index 0000000..9a410b2 --- /dev/null +++ b/EBox.java @@ -0,0 +1,10 @@ + +public class EBox extends Box{ + + public EBox (int x, int y) { + + super(x,y) ; + + } + +} diff --git a/Maze.java b/Maze.java new file mode 100644 index 0000000..4a15ce4 --- /dev/null +++ b/Maze.java @@ -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; + } + + + +} diff --git a/WBox.java b/WBox.java new file mode 100644 index 0000000..7705426 --- /dev/null +++ b/WBox.java @@ -0,0 +1,10 @@ + +public class WBox extends Box { + + public WBox (int x, int y) { + + super(x,y) ; + + } + +}