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 --- .../epfl/maze/physical/stragegies/reducer/CaseReducer.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ch/epfl/maze/physical/stragegies/reducer/CaseReducer.java') diff --git a/src/ch/epfl/maze/physical/stragegies/reducer/CaseReducer.java b/src/ch/epfl/maze/physical/stragegies/reducer/CaseReducer.java index 837bd4b..71de287 100644 --- a/src/ch/epfl/maze/physical/stragegies/reducer/CaseReducer.java +++ b/src/ch/epfl/maze/physical/stragegies/reducer/CaseReducer.java @@ -1,6 +1,6 @@ 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 java.util.Set; @@ -16,17 +16,17 @@ public interface CaseReducer extends ChoiceReducer { /** * Checks if the given choice should be kept or excluded by the filter. * - * @param choice A Direction - * @param world The World + * @param choice A Direction + * @param daedalus The Daedalus * @return T(The filter should keep the given choice) */ - boolean keepChoice(Direction choice, World world); + boolean keepChoice(Direction choice, Daedalus daedalus); @Override - default Set reduce(Set choices, World world) { + default Set reduce(Set choices, Daedalus daedalus) { return choices .stream() - .filter(choice -> this.keepChoice(choice, world)) + .filter(choice -> this.keepChoice(choice, daedalus)) .collect(Collectors.toSet()); } -- cgit v1.2.3