TraversableDistanceFromMechanism.py 683B

123456789101112131415161718
  1. from synergine_xyz.mechanism.DistanceFromMechanism import DistanceFromMechanism
  2. class TraversableDistanceFromMechanism(DistanceFromMechanism):
  3. """
  4. Prepare list of traversable points around synergy object position. These point are associated with distance
  5. of synergy object position.
  6. """
  7. def _get_maximum_distance(self, object_id, context):
  8. # TODO (ds surcharge) Maintenir un rayon (calculé en fonction de la taille de la colonie + ratio en
  9. # fonction de ce qui est smelling)
  10. # pour le moment ...valeur hardcode
  11. return 6
  12. def _point_is_computable(self, context, point):
  13. return context.position_can_be_odorus(point)