Browse Source

Add Food object

Bastien Sevajol 9 years ago
parent
commit
693a6b4b4b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      intelligine/display/pygame/visualisation.py

+ 5 - 0
intelligine/display/pygame/visualisation.py View File

@@ -1,6 +1,7 @@
1 1
 from xyworld.display.object.pygame.PygameImage import PygameImage
2 2
 from xyworld.display.object.pygame.DirectionnedImage import DirectionnedImage
3 3
 from intelligine.synergy.object.Bug import Bug
4
+from intelligine.synergy.object.Food import Food
4 5
 from intelligine.synergy.object.ant.Ant import Ant
5 6
 from intelligine.sandbox.colored.BlueAnt import BlueAnt
6 7
 from intelligine.sandbox.colored.RedAnt import RedAnt
@@ -13,6 +14,7 @@ from intelligine.cst import PREVIOUS_DIRECTION
13 14
 # TODO: Analyser les procedes ici pour proposer des outils dans le framework
14 15
 
15 16
 ant = PygameImage.from_filepath(getcwd()+'/intelligine/display/pygame/image/ant.png')
17
+food = PygameImage.from_filepath(getcwd()+'/intelligine/display/pygame/image/food.png')
16 18
 dead_ant = PygameImage.from_filepath(getcwd()+'/intelligine/display/pygame/image/dead_ant.png')
17 19
 red_ant = PygameImage.from_filepath(getcwd()+'/intelligine/display/pygame/image/red_ant.png')
18 20
 green_ant = PygameImage.from_filepath(getcwd()+'/intelligine/display/pygame/image/green_ant.png')
@@ -128,6 +130,9 @@ visualisation = {
128 130
         Rock: {
129 131
             'default': rock
130 132
         },
133
+        Food: {
134
+            'default': food
135
+        },
131 136
         Pheromon: {
132 137
             'default': phee,
133 138
             'callbacks': [phee_direction]