Food.py 452B

123456789101112131415
  1. from intelligine.synergy.object.Transportable import Transportable
  2. from intelligine.cst import TRANSPORTABLE
  3. class Food(Transportable):
  4. def __init__(self, collection, context):
  5. super().__init__(collection, context)
  6. context.metas.states.add(self.get_id(), TRANSPORTABLE)
  7. def get_what_carry(self):
  8. clone = self.__class__(self._collection, self._context)
  9. self._collection.add_object(clone)
  10. return clone