Browse Source

Phermone when explo is an home_direction pheromone

Bastien Sevajol 9 years ago
parent
commit
ab07d93fd1
2 changed files with 3 additions and 2 deletions
  1. 1 0
      intelligine/cst.py
  2. 2 2
      intelligine/display/Pygame.py

+ 1 - 0
intelligine/cst.py View File

@@ -22,6 +22,7 @@ PHEROMON_POSITIONS = IncrementedNamedInt.get('intelligine.phero.positions')
22 22
 PHEROMON_INFOS = IncrementedNamedInt.get('intelligine.phero.infos')
23 23
 PHEROMON_DIRECTION = IncrementedNamedInt.get('intelligine.phero.direction')
24 24
 PHEROMON_DIR_EXPLO = IncrementedNamedInt.get('intelligine.phero.direction.explo')
25
+PHEROMON_DIR_HOME = IncrementedNamedInt.get('intelligine.phero.direction.home')
25 26
 
26 27
 COL_ALIVE = IncrementedNamedInt.get('intelligine.col.alive')
27 28
 COL_WALKER = IncrementedNamedInt.get('intelligine.col.walker')

+ 2 - 2
intelligine/display/Pygame.py View File

@@ -1,6 +1,6 @@
1 1
 from xyzworld.display.Pygame import Pygame as XyzPygame
2 2
 import pygame
3
-from intelligine.cst import PHEROMON_INFOS, PHEROMON_DIRECTION, PHEROMON_DIR_EXPLO, PHEROMON_POSITIONS
3
+from intelligine.cst import PHEROMON_INFOS, PHEROMON_DIRECTION, PHEROMON_DIR_HOME, PHEROMON_POSITIONS
4 4
 from intelligine.synergy.object.ant.Pheromon import Pheromon
5 5
 
6 6
 
@@ -20,7 +20,7 @@ class Pygame(XyzPygame):
20 20
         for point in pheromones_positions:
21 21
             exploration_info = context.pheromones().get_info(point,
22 22
                                                              [PHEROMON_DIRECTION,
23
-                                                              PHEROMON_DIR_EXPLO],
23
+                                                              PHEROMON_DIR_HOME],
24 24
                                                              allow_empty=True,
25 25
                                                              empty_value={})
26 26