Browse Source

adapt to AntStar evolution

Bastien Sevajol 9 years ago
parent
commit
130a9b7d6b

+ 0 - 1
intelligine/simulation/object/brain/part/move/AntMoveBrainPart.py View File

68
     def _get_direction_with_exploration_vector(cls, context, object_id):
68
     def _get_direction_with_exploration_vector(cls, context, object_id):
69
         ant_star = cls._get_by_pass_brain(context, object_id)
69
         ant_star = cls._get_by_pass_brain(context, object_id)
70
         ant_star.advance()
70
         ant_star.advance()
71
-        ant_star.has_moved()
72
         return ant_star.get_host().get_moved_to_direction()
71
         return ant_star.get_host().get_moved_to_direction()
73
 
72
 
74
     @classmethod
73
     @classmethod

+ 1 - 0
intelligine/simulation/object/brain/part/move/AntStar/Host.py View File

19
         return self._feeler
19
         return self._feeler
20
 
20
 
21
     def move_to(self, direction):
21
     def move_to(self, direction):
22
+        # TODO: Heriter de Host AntStar au lieu de tout repeter ici ...
22
         self._moved_to_direction = direction
23
         self._moved_to_direction = direction
23
         self._position_3d = get_position_with_direction_decal(direction, self._position_3d)
24
         self._position_3d = get_position_with_direction_decal(direction, self._position_3d)
24
 
25