# Path: intelligine/cst.py
# TYPE = IncrementedNamedInt.get('intelligine.object.type')
# 
# TYPE_RESOURCE_EXPLOITABLE = IncrementedNamedInt.get('intelligine.object.type.resource.transformable')
# 
# COL_EATABLE = IncrementedNamedInt.get('intelligine.col.eatable')
# 
# COL_SMELL = IncrementedNamedInt.get('intelligine.col.smell')
# 
# SMELL_FOOD = IncrementedNamedInt.get('intelligine.smell.food')
# 
# TYPE_RESOURCE_EATABLE = IncrementedNamedInt.get('intelligine.object.type.resource.eatable')
# 
# Path: intelligine/synergy/object/Food.py
# 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)
#         self._context.metas.list.add(TYPE, self.get_id(), TYPE_RESOURCE_EATABLE)
#         self._add_col(COL_EATABLE)
#         self._add_col(COL_SMELL)
#         self._set_smell(SMELL_FOOD)


from intelligine.cst import TYPE, TYPE_RESOURCE_EXPLOITABLE, COL_EATABLE, COL_SMELL, SMELL_FOOD, TYPE_RESOURCE_EATABLE
from intelligine.synergy.object.Food import Food


class StockedFood(Food):

    def __init__(self, collection, context):
        super().__init__(collection, context)
        context.metas.list.remove(TYPE, self.get_id(), TYPE_RESOURCE_EXPLOITABLE)
        context.metas.list.add(TYPE, self.get_id(), TYPE_RESOURCE_EATABLE)
        self._add_col(COL_EATABLE)
        self._add_col(COL_SMELL)
        self._set_smell(SMELL_FOOD)

    def __new__(cls, *args, **kwargs):

# Path: intelligine/cst.py
# TYPE = IncrementedNamedInt.get('intelligine.object.type')
# 
# TYPE_RESOURCE_EXPLOITABLE = IncrementedNamedInt.get('intelligine.object.type.resource.transformable')
# 
# COL_EATABLE = IncrementedNamedInt.get('intelligine.col.eatable')
# 
# COL_SMELL = IncrementedNamedInt.get('intelligine.col.smell')
# 
# SMELL_FOOD = IncrementedNamedInt.get('intelligine.smell.food')
# 
# TYPE_RESOURCE_EATABLE = IncrementedNamedInt.get('intelligine.object.type.resource.eatable')
# 
# Path: intelligine/synergy/object/Food.py
# 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)
#         self._context.metas.list.add(TYPE, self.get_id(), TYPE_RESOURCE_EATABLE)
#         self._add_col(COL_EATABLE)
#         self._add_col(COL_SMELL)
#         self._set_smell(SMELL_FOOD)


# Path: intelligine/synergy/object/StockedFood.py
from intelligine.cst import TYPE, TYPE_RESOURCE_EXPLOITABLE, COL_EATABLE, COL_SMELL, SMELL_FOOD, TYPE_RESOURCE_EATABLE
from intelligine.synergy.object.Food import Food



class StockedFood(Food):

    def __init__(self, collection, context):
        super().__init__(collection, context)
        context.metas.list.remove(TYPE, self.get_id(), TYPE_RESOURCE_EXPLOITABLE)
        context.metas.list.add(TYPE, self.get_id(), TYPE_RESOURCE_EATABLE)
        self._add_col(COL_EATABLE)
        self._add_col(COL_SMELL)
        self._set_smell(SMELL_FOOD)

    def __new__(cls, *args, **kwargs):

        return Food(*args, **kwargs)