Explorar el Código

update Display

Bastien Sevajol hace 9 años
padre
commit
737ca0b182
Se han modificado 1 ficheros con 6 adiciones y 5 borrados
  1. 6 5
      intelligine/display/Pygame.py

+ 6 - 5
intelligine/display/Pygame.py Ver fichero

@@ -7,14 +7,15 @@ from intelligine.display.pygame.visualisation import SURFACE_PHEROMONE_EXPLORATI
7 7
 
8 8
 class Pygame(XyzPygame):
9 9
 
10
-    def __init__(self, config, context):
11
-        super().__init__(config, context)
10
+    def __init__(self, config, context, synergy_manager):
11
+        super().__init__(config, context, synergy_manager)
12 12
         self._is_display_pheromones = False
13 13
 
14
-    def receive(self, synergy_object_manager, context):
15
-        super().receive(synergy_object_manager, context)
14
+    def receive(self, actions_done):
15
+        super().receive(actions_done)
16 16
         if self._is_display_pheromones:
17
-            self._display_pheromones(context.metas.list.get(PHEROMON_POSITIONS, PHEROMON_POSITIONS, allow_empty=True), context)
17
+            pheromones_positions = self._context.metas.list.get(PHEROMON_POSITIONS, PHEROMON_POSITIONS, allow_empty=True)
18
+            self._display_pheromones(pheromones_positions, self._context)
18 19
 
19 20
     def _display_pheromones(self, pheromones_positions, context):
20 21
         pheromone_exploration_surface = self._object_visualizer.get_surface(SURFACE_PHEROMONE_EXPLORATION)