def filter()

in agent/decision_modules/examiner.py [0:0]


    def filter(self, candidate_entities):
        """ Filters candidate entities. """
        curr_loc = kg.player_location
        for entity_name in candidate_entities:
            action = gv.Examine(entity_name)
            if curr_loc.has_entity_with_name(entity_name) or \
               action in curr_loc.action_records or \
               not action.recognized() or \
               entity_name in self._to_examine[curr_loc]:
                continue
            self._to_examine[curr_loc].append(entity_name)