diff options
Diffstat (limited to 'src/ch/epfl/maze/physical/stragegies/picker')
-rw-r--r-- | src/ch/epfl/maze/physical/stragegies/picker/BlindPicker.java | 4 | ||||
-rw-r--r-- | src/ch/epfl/maze/physical/stragegies/picker/ChoicePicker.java | 11 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/ch/epfl/maze/physical/stragegies/picker/BlindPicker.java b/src/ch/epfl/maze/physical/stragegies/picker/BlindPicker.java index 6dcf229..02cb1ef 100644 --- a/src/ch/epfl/maze/physical/stragegies/picker/BlindPicker.java +++ b/src/ch/epfl/maze/physical/stragegies/picker/BlindPicker.java | |||
@@ -1,6 +1,6 @@ | |||
1 | package ch.epfl.maze.physical.stragegies.picker; | 1 | package ch.epfl.maze.physical.stragegies.picker; |
2 | 2 | ||
3 | import ch.epfl.maze.physical.World; | 3 | import ch.epfl.maze.physical.Daedalus; |
4 | import ch.epfl.maze.util.Direction; | 4 | import ch.epfl.maze.util.Direction; |
5 | 5 | ||
6 | import java.util.Set; | 6 | import java.util.Set; |
@@ -13,7 +13,7 @@ import java.util.Set; | |||
13 | public interface BlindPicker extends ChoicePicker { | 13 | public interface BlindPicker extends ChoicePicker { |
14 | 14 | ||
15 | @Override | 15 | @Override |
16 | default Direction pick(Set<Direction> choices, World world) { | 16 | default Direction pick(Set<Direction> choices, Daedalus daedalus) { |
17 | return this.pick(choices); | 17 | return this.pick(choices); |
18 | } | 18 | } |
19 | 19 | ||
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 @@ | |||
1 | package ch.epfl.maze.physical.stragegies.picker; | 1 | package ch.epfl.maze.physical.stragegies.picker; |
2 | 2 | ||
3 | import ch.epfl.maze.physical.Daedalus; | ||
3 | import ch.epfl.maze.physical.World; | 4 | import ch.epfl.maze.physical.World; |
4 | import ch.epfl.maze.util.Direction; | 5 | import ch.epfl.maze.util.Direction; |
5 | import ch.epfl.maze.util.Vector2D; | 6 | import 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 | } |