浏览代码

update Display

Bastien Sevajol 10 年前
父节点
当前提交
737ca0b182
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      intelligine/display/Pygame.py

+ 6 - 5
intelligine/display/Pygame.py 查看文件

@@ -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)