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