Browse Source

adapt to AntStar evolution

Bastien Sevajol 8 years ago
parent
commit
130a9b7d6b

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

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

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

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