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