From f312719bf9df140a22406a4e40c5221a86cd8073 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 24 Nov 2015 21:56:22 +0100 Subject: Refactor Daedalus residence --- src/ch/epfl/maze/physical/stragegies/reducer/ChoiceReducer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ch/epfl/maze/physical/stragegies/reducer/ChoiceReducer.java') diff --git a/src/ch/epfl/maze/physical/stragegies/reducer/ChoiceReducer.java b/src/ch/epfl/maze/physical/stragegies/reducer/ChoiceReducer.java index 3cb744d..c7e8833 100644 --- a/src/ch/epfl/maze/physical/stragegies/reducer/ChoiceReducer.java +++ b/src/ch/epfl/maze/physical/stragegies/reducer/ChoiceReducer.java @@ -1,8 +1,7 @@ package ch.epfl.maze.physical.stragegies.reducer; -import ch.epfl.maze.physical.World; +import ch.epfl.maze.physical.Daedalus; import ch.epfl.maze.util.Direction; -import ch.epfl.maze.util.Vector2D; import java.util.Set; @@ -26,9 +25,10 @@ public interface ChoiceReducer { * In this variation, the animal knows the world entirely. It can therefore * use the position of other animals in the world to move more effectively. * - * @param choices The choices left to the animal + * @param choices The choices left to the animal + * @param daedalus The daedalus in which the animal moves * @return A subset of possible direction of the animal, chosen in {@code choices} */ - Set reduce(Set choices, World world); + Set reduce(Set choices, Daedalus daedalus); } -- cgit v1.2.3