|
@@ -1,7 +1,7 @@
|
1
|
1
|
from intelligine.simulation.object.brain.Brain import Brain
|
2
|
2
|
from intelligine.simulation.object.brain.part.attack.AttackBrainPart import AttackBrainPart
|
3
|
3
|
from intelligine.simulation.object.brain.part.move.AntMoveBrainPart import AntMoveBrainPart
|
4
|
|
-from intelligine.cst import MOVE_MODE, MOVE_MODE_EXPLO, MOVE_MODE_GOHOME, PHEROMON_DIR_HOME, PHEROMON_DIR_EXPLO, \
|
|
4
|
+from intelligine.cst import MOVE_MODE, MOVE_MODE_EXPLO, MOVE_MODE_GOHOME, PHEROMON_DIR_EXPLO, \
|
5
|
5
|
BRAIN_PART_TAKE, BRAIN_PART_PUT, MOVE_MODE_NURSE, PHEROMON_DIR_NONE, BRAIN_PART_ATTACK, MOVE_MODE_HOME, SMELL_FOOD
|
6
|
6
|
from intelligine.cst import MOLECULE_SEARCHING
|
7
|
7
|
from intelligine.cst import BRAIN_PART_MOVE
|
|
@@ -41,7 +41,7 @@ class AntBrain(Brain):
|
41
|
41
|
|
42
|
42
|
def _update_molecule_gland(self, mode):
|
43
|
43
|
if mode == MOVE_MODE_EXPLO:
|
44
|
|
- molecule_direction_type = PHEROMON_DIR_HOME
|
|
44
|
+ molecule_direction_type = None
|
45
|
45
|
elif mode == MOVE_MODE_GOHOME:
|
46
|
46
|
molecule_direction_type = PHEROMON_DIR_EXPLO
|
47
|
47
|
self._distance_from_objective = 0
|
|
@@ -62,8 +62,7 @@ class AntBrain(Brain):
|
62
|
62
|
if mode == MOVE_MODE_EXPLO:
|
63
|
63
|
molecule_searching = PHEROMON_DIR_EXPLO
|
64
|
64
|
elif mode == MOVE_MODE_GOHOME:
|
65
|
|
- # TODO: Plus rien ici (path integration)
|
66
|
|
- molecule_searching = PHEROMON_DIR_HOME
|
|
65
|
+ molecule_searching = PHEROMON_DIR_NONE
|
67
|
66
|
elif mode == MOVE_MODE_NURSE:
|
68
|
67
|
molecule_searching = PHEROMON_DIR_NONE
|
69
|
68
|
elif mode == MOVE_MODE_HOME:
|