# Path: intelligine/synergy/object/ressource/Ressource.py
# class Resource(Transportable):
#     pass
# 
# Path: intelligine/cst.py
# TYPE = IncrementedNamedInt.get('intelligine.object.type')
# 
# TYPE_RESOURCE_EXPLOITABLE = IncrementedNamedInt.get('intelligine.object.type.resource.transformable')
# 
# TYPE_RESOURCE_EATABLE = IncrementedNamedInt.get('intelligine.object.type.resource.eatable')
# 
# COL_EATABLE = IncrementedNamedInt.get('intelligine.col.eatable')
# 
# COL_SMELL = IncrementedNamedInt.get('intelligine.col.smell')
# 
# SMELL_FOOD = IncrementedNamedInt.get('intelligine.smell.food')
# 
# TRANSPORTABLE = IncrementedNamedInt.get('intelligine.transportable')


from intelligine.synergy.object.ressource.Ressource import Resource
from intelligine.cst import TYPE, TYPE_RESOURCE_EXPLOITABLE, TYPE_RESOURCE_EATABLE, COL_EATABLE, COL_SMELL, SMELL_FOOD, \
    TRANSPORTABLE


class Food(Resource):

    def __init__(self, collection, context):
        super().__init__(collection, context)
        context.metas.list.add(TYPE, self.get_id(), TYPE_RESOURCE_EXPLOITABLE)

    def get_what_carry(self):
        return self  # dev
        clone = self.__class__(self._collection, self._context)
        self._collection.add_object(clone)
        return clone

    def transform_to_stocked(self):

# Path: intelligine/synergy/object/ressource/Ressource.py
# class Resource(Transportable):
#     pass
# 
# Path: intelligine/cst.py
# TYPE = IncrementedNamedInt.get('intelligine.object.type')
# 
# TYPE_RESOURCE_EXPLOITABLE = IncrementedNamedInt.get('intelligine.object.type.resource.transformable')
# 
# TYPE_RESOURCE_EATABLE = IncrementedNamedInt.get('intelligine.object.type.resource.eatable')
# 
# COL_EATABLE = IncrementedNamedInt.get('intelligine.col.eatable')
# 
# COL_SMELL = IncrementedNamedInt.get('intelligine.col.smell')
# 
# SMELL_FOOD = IncrementedNamedInt.get('intelligine.smell.food')
# 
# TRANSPORTABLE = IncrementedNamedInt.get('intelligine.transportable')


# Path: intelligine/synergy/object/Food.py
from intelligine.synergy.object.ressource.Ressource import Resource
from intelligine.cst import TYPE, TYPE_RESOURCE_EXPLOITABLE, TYPE_RESOURCE_EATABLE, COL_EATABLE, COL_SMELL, SMELL_FOOD, \
    TRANSPORTABLE



class Food(Resource):

    def __init__(self, collection, context):
        super().__init__(collection, context)
        context.metas.list.add(TYPE, self.get_id(), TYPE_RESOURCE_EXPLOITABLE)

    def get_what_carry(self):
        return self  # dev
        clone = self.__class__(self._collection, self._context)
        self._collection.add_object(clone)
        return clone

    def transform_to_stocked(self):

        self._context.metas.list.remove(TYPE, self.get_id(), TYPE_RESOURCE_EXPLOITABLE)