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 getAnimals() { // TODO return new ArrayList(); } /** * Determines if the maze contains an animal. * * @param a The animal in question * @return true if the animal belongs to the world, false * 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 } }