summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/Daedalus.java
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-21 10:36:18 +0100
committerPacien TRAN-GIRARD2015-11-21 10:36:18 +0100
commit655ac88f4e73b2df532a451aedf5a561ea1b0d2c (patch)
treeef6f914a465575f313e2b280bf0639d87a4cbd58 /src/ch/epfl/maze/physical/Daedalus.java
parent56279eb59ccdea48b18daa027a5095d861b4e2f4 (diff)
downloadmaze-solver-655ac88f4e73b2df532a451aedf5a561ea1b0d2c.tar.gz
Import project structure
Diffstat (limited to 'src/ch/epfl/maze/physical/Daedalus.java')
-rw-r--r--src/ch/epfl/maze/physical/Daedalus.java136
1 files changed, 136 insertions, 0 deletions
diff --git a/src/ch/epfl/maze/physical/Daedalus.java b/src/ch/epfl/maze/physical/Daedalus.java
new file mode 100644
index 0000000..329ab92
--- /dev/null
+++ b/src/ch/epfl/maze/physical/Daedalus.java
@@ -0,0 +1,136 @@
1package ch.epfl.maze.physical;
2
3import java.util.ArrayList;
4import java.util.List;
5
6/**
7 * Daedalus in which predators hunt preys. Once a prey has been caught by a
8 * predator, it will be removed from the daedalus.
9 *
10 */
11
12public final class Daedalus extends World {
13
14 /**
15 * Constructs a Daedalus with a labyrinth structure
16 *
17 * @param labyrinth
18 * Structure of the labyrinth, an NxM array of tiles
19 */
20
21 public Daedalus(int[][] labyrinth) {
22 super(labyrinth);
23 // TODO
24 }
25
26 @Override
27 public boolean isSolved() {
28 // TODO
29 return false;
30 }
31
32 /**
33 * Adds a predator to the daedalus.
34 *
35 * @param p
36 * The predator to add
37 */
38
39 public void addPredator(Predator p) {
40 // TODO
41 }
42
43 /**
44 * Adds a prey to the daedalus.
45 *
46 * @param p
47 * The prey to add
48 */
49
50 public void addPrey(Prey p) {
51 // TODO
52 }
53
54 /**
55 * Removes a predator from the daedalus.
56 *
57 * @param p
58 * The predator to remove
59 */
60
61 public void removePredator(Predator p) {
62 // TODO
63 }
64
65 /**
66 * Removes a prey from the daedalus.
67 *
68 * @param p
69 * The prey to remove
70 */
71
72 public void removePrey(Prey p) {
73 // TODO
74 }
75
76 @Override
77 public List<Animal> getAnimals() {
78 // TODO
79 return null;
80 }
81
82 /**
83 * Returns a copy of the list of all current predators in the daedalus.
84 *
85 * @return A list of all predators in the daedalus
86 */
87
88 public List<Predator> getPredators() {
89 // TODO
90 return new ArrayList<Predator>();
91 }
92
93 /**
94 * Returns a copy of the list of all current preys in the daedalus.
95 *
96 * @return A list of all preys in the daedalus
97 */
98
99 public List<Prey> getPreys() {
100 // TODO
101 return new ArrayList<Prey>();
102 }
103
104 /**
105 * Determines if the daedalus contains a predator.
106 *
107 * @param p
108 * The predator in question
109 * @return <b>true</b> if the predator belongs to the world, <b>false</b>
110 * otherwise.
111 */
112
113 public boolean hasPredator(Predator p) {
114 // TODO
115 return false;
116 }
117
118 /**
119 * Determines if the daedalus contains a prey.
120 *
121 * @param p
122 * The prey in question
123 * @return <b>true</b> if the prey belongs to the world, <b>false</b>
124 * otherwise.
125 */
126
127 public boolean hasPrey(Prey p) {
128 // TODO
129 return false;
130 }
131
132 @Override
133 public void reset() {
134 // TODO
135 }
136}