summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/Maze.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/physical/Maze.java')
-rw-r--r--src/ch/epfl/maze/physical/Maze.java79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/ch/epfl/maze/physical/Maze.java b/src/ch/epfl/maze/physical/Maze.java
new file mode 100644
index 0000000..2f70996
--- /dev/null
+++ b/src/ch/epfl/maze/physical/Maze.java
@@ -0,0 +1,79 @@
1package ch.epfl.maze.physical;
2
3import java.util.ArrayList;
4import java.util.List;
5
6/**
7 * Maze in which an animal starts from a starting point and must find the exit.
8 * Every animal added will have its position set to the starting point. The
9 * animal is removed from the maze when it finds the exit.
10 *
11 */
12
13public final class Maze extends World {
14
15 /**
16 * Constructs a Maze with a labyrinth structure.
17 *
18 * @param labyrinth
19 * Structure of the labyrinth, an NxM array of tiles
20 */
21
22 public Maze(int[][] labyrinth) {
23 super(labyrinth);
24 // TODO
25 }
26
27 @Override
28 public boolean isSolved() {
29 // TODO
30 return false;
31 }
32
33 @Override
34 public List<Animal> getAnimals() {
35 // TODO
36 return new ArrayList<Animal>();
37 }
38
39 /**
40 * Determines if the maze contains an animal.
41 *
42 * @param a
43 * The animal in question
44 * @return <b>true</b> if the animal belongs to the world, <b>false</b>
45 * otherwise.
46 */
47
48 public boolean hasAnimal(Animal a) {
49 // TODO
50 return false;
51 }
52
53 /**
54 * Adds an animal to the maze.
55 *
56 * @param a
57 * The animal to add
58 */
59
60 public void addAnimal(Animal a) {
61 // TODO
62 }
63
64 /**
65 * Removes an animal from the maze.
66 *
67 * @param a
68 * The animal to remove
69 */
70
71 public void removeAnimal(Animal a) {
72 // TODO
73 }
74
75 @Override
76 public void reset() {
77 // TODO
78 }
79}