summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/Maze.java
blob: 71f2f80e810f31791ce8f196d3cca9272b9c4b25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package ch.epfl.maze.physical;

import java.util.ArrayList;
import java.util.List;

/**
 * Maze in which an animal starts from a starting point and must find the exit.
 * Every animal added will have its position set to the starting point. The
 * animal is removed from the maze when it finds the exit.
 */

public final class Maze extends World {

    /**
     * Constructs a Maze with a labyrinth structure.
     *
     * @param labyrinth Structure of the labyrinth, an NxM array of tiles
     */

    public Maze(int[][] labyrinth) {
        super(labyrinth);
        // TODO
    }

    @Override
    public boolean isSolved() {
        // TODO
        return false;
    }

    @Override
    public List<Animal> getAnimals() {
        // TODO
        return new ArrayList<Animal>();
    }

    /**
     * Determines if the maze contains an animal.
     *
     * @param a The animal in question
     * @return <b>true</b> if the animal belongs to the world, <b>false</b>
     * otherwise.
     */

    public boolean hasAnimal(Animal a) {
        // TODO
        return false;
    }

    /**
     * Adds an animal to the maze.
     *
     * @param a The animal to add
     */

    public void addAnimal(Animal a) {
        // TODO
    }

    /**
     * Removes an animal from the maze.
     *
     * @param a The animal to remove
     */

    public void removeAnimal(Animal a) {
        // TODO
    }

    @Override
    public void reset() {
        // TODO
    }
}