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
 PHEROMON_INFOS = IncrementedNamedInt.get('intelligine.phero.infos')
22
 PHEROMON_INFOS = IncrementedNamedInt.get('intelligine.phero.infos')
23
 PHEROMON_DIRECTION = IncrementedNamedInt.get('intelligine.phero.direction')
23
 PHEROMON_DIRECTION = IncrementedNamedInt.get('intelligine.phero.direction')
24
 PHEROMON_DIR_EXPLO = IncrementedNamedInt.get('intelligine.phero.direction.explo')
24
 PHEROMON_DIR_EXPLO = IncrementedNamedInt.get('intelligine.phero.direction.explo')
25
+PHEROMON_DIR_HOME = IncrementedNamedInt.get('intelligine.phero.direction.home')
25
 
26
 
26
 COL_ALIVE = IncrementedNamedInt.get('intelligine.col.alive')
27
 COL_ALIVE = IncrementedNamedInt.get('intelligine.col.alive')
27
 COL_WALKER = IncrementedNamedInt.get('intelligine.col.walker')
28
 COL_WALKER = IncrementedNamedInt.get('intelligine.col.walker')

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

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