# Path: intelligine/synergy/event/smell/SmellAction.py
# class SmellAction(Action):
# 
#     _listen = SmellEvent
#     _depend = [MoveAction]
# 
#     @classmethod
#     def cycle_pre_run(cls, context, synergy_manager):
#         evaporation = Evaporation(context, molecules_include_types=[SMELL_FOOD, SMELL_EGG])
#         evaporation.remove()
# 
#     def run(self, obj, context, synergy_manager):
# 
#         points_distances = self._parameters['points_distances']
#         smell_type = obj.get_smell()
# 
#         for smell_point in points_distances:
#             distance = points_distances[smell_point]
#             molecule = Molecule(MOLECULES_DIRECTION, smell_type, distance)
# 
#             try:
#                 DirectionMolecule.appose(context, smell_point, molecule)
#             except BestMoleculeHere:
#                 pass


from intelligine.synergy.event.smell.SmellAction import SmellAction
from synergine.synergy.collection.SynergyCollection import SynergyCollection


class Environment(SynergyCollection):
    """
    TODO: Rename in Environment
    """

    def __init__(self, configuration):
        super().__init__(configuration)

# Path: intelligine/synergy/event/smell/SmellAction.py
# class SmellAction(Action):
# 
#     _listen = SmellEvent
#     _depend = [MoveAction]
# 
#     @classmethod
#     def cycle_pre_run(cls, context, synergy_manager):
#         evaporation = Evaporation(context, molecules_include_types=[SMELL_FOOD, SMELL_EGG])
#         evaporation.remove()
# 
#     def run(self, obj, context, synergy_manager):
# 
#         points_distances = self._parameters['points_distances']
#         smell_type = obj.get_smell()
# 
#         for smell_point in points_distances:
#             distance = points_distances[smell_point]
#             molecule = Molecule(MOLECULES_DIRECTION, smell_type, distance)
# 
#             try:
#                 DirectionMolecule.appose(context, smell_point, molecule)
#             except BestMoleculeHere:
#                 pass


# Path: intelligine/synergy/Environment.py
from intelligine.synergy.event.smell.SmellAction import SmellAction
from synergine.synergy.collection.SynergyCollection import SynergyCollection



class Environment(SynergyCollection):
    """
    TODO: Rename in Environment
    """

    def __init__(self, configuration):
        super().__init__(configuration)

        self._actions = [SmellAction]