summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/physical/stragegies/picker/ChoicePicker.java
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-24 21:56:22 +0100
committerPacien TRAN-GIRARD2015-11-24 21:56:22 +0100
commitf312719bf9df140a22406a4e40c5221a86cd8073 (patch)
tree06af4c01044096b6d2a5578d4f6b166d77384e07 /src/ch/epfl/maze/physical/stragegies/picker/ChoicePicker.java
parentbe641348b8d677b3d9cdc0db90804edb0c46a3dc (diff)
downloadmaze-solver-f312719bf9df140a22406a4e40c5221a86cd8073.tar.gz
Refactor Daedalus residence
Diffstat (limited to 'src/ch/epfl/maze/physical/stragegies/picker/ChoicePicker.java')
-rw-r--r--src/ch/epfl/maze/physical/stragegies/picker/ChoicePicker.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ch/epfl/maze/physical/stragegies/picker/ChoicePicker.java b/src/ch/epfl/maze/physical/stragegies/picker/ChoicePicker.java
index 76fe3eb..756c446 100644
--- a/src/ch/epfl/maze/physical/stragegies/picker/ChoicePicker.java
+++ b/src/ch/epfl/maze/physical/stragegies/picker/ChoicePicker.java
@@ -1,5 +1,6 @@
1package ch.epfl.maze.physical.stragegies.picker; 1package ch.epfl.maze.physical.stragegies.picker;
2 2
3import ch.epfl.maze.physical.Daedalus;
3import ch.epfl.maze.physical.World; 4import ch.epfl.maze.physical.World;
4import ch.epfl.maze.util.Direction; 5import ch.epfl.maze.util.Direction;
5import ch.epfl.maze.util.Vector2D; 6import ch.epfl.maze.util.Vector2D;
@@ -33,12 +34,12 @@ public interface ChoicePicker {
33 * In this variation, the animal knows the world entirely. It can therefore 34 * In this variation, the animal knows the world entirely. It can therefore
34 * use the position of other animals in the daedalus to move more effectively. 35 * use the position of other animals in the daedalus to move more effectively.
35 * 36 *
36 * @param choices The choices left to the animal at its current position (see 37 * @param choices The choices left to the animal at its current position (see
37 * {@link ch.epfl.maze.physical.World#getChoices(Vector2D) 38 * {@link World#getChoices(Vector2D)
38 * World.getChoices(Vector2D)}) 39 * World.getChoices(Vector2D)})
39 * @param world The world in which the animal moves 40 * @param daedalus The daedalus in which the animal moves
40 * @return The next direction of the animal, chosen in {@code choices} 41 * @return The next direction of the animal, chosen in {@code choices}
41 */ 42 */
42 Direction pick(Set<Direction> choices, World world); 43 Direction pick(Set<Direction> choices, Daedalus daedalus);
43 44
44} 45}