|
@@ -1,7 +1,7 @@
|
1
|
1
|
from intelligine.core.exceptions import PheromoneException
|
2
|
2
|
from intelligine.synergy.object.Bug import Bug
|
3
|
3
|
from intelligine.cst import CARRYING, TRANSPORTER, ATTACKER, COL_TRANSPORTER, COL_TRANSPORTER_NOT_CARRYING, \
|
4
|
|
- COL_FIGHTER, MOVE_MODE_EXPLO, MOVE_MODE_GOHOME, CARRIED, BODY_PART_PHEROMONE_GLAND
|
|
4
|
+ COL_FIGHTER, MOVE_MODE_EXPLO, MOVE_MODE_GOHOME, CARRIED, BODY_PART_PHEROMONE_GLAND, TYPE, TYPE_ANT
|
5
|
5
|
from intelligine.synergy.object.Food import Food
|
6
|
6
|
from intelligine.simulation.object.pheromone.MovementPheromoneGland import MovementPheromoneGland
|
7
|
7
|
from intelligine.simulation.object.brain.AntBrain import AntBrain
|
|
@@ -21,6 +21,7 @@ class Ant(Bug):
|
21
|
21
|
COL_FIGHTER])
|
22
|
22
|
self._carried = None
|
23
|
23
|
self._brain.switch_to_mode(MOVE_MODE_EXPLO)
|
|
24
|
+ context.metas.list.add(TYPE, self.get_id(), TYPE_ANT)
|
24
|
25
|
|
25
|
26
|
def _get_brain_instance(self):
|
26
|
27
|
return AntBrain(self._context, self)
|