MovementPheromoneGland.py 476B

123456789101112
  1. from intelligine.cst import PHEROMON_DIRECTION
  2. from intelligine.simulation.object.pheromone.PheromoneGland import PheromoneGland
  3. from intelligine.simulation.pheromone.Pheromone import Pheromone
  4. class MovementPheromoneGland(PheromoneGland):
  5. def get_pheromone(self):
  6. """
  7. :return: pheromone_type, distance_from_objective
  8. """
  9. return Pheromone(PHEROMON_DIRECTION, self._pheromone_type, self._host.get_brain().get_distance_from_objective(), 1)