|
|
|
|
1
|
from intelligine.simulation.object.brain.Brain import Brain
|
1
|
from intelligine.simulation.object.brain.Brain import Brain
|
|
|
2
|
+from intelligine.simulation.object.brain.part.attack.AttackBrainPart import AttackBrainPart
|
2
|
from intelligine.simulation.object.brain.part.move.AntMoveBrainPart import AntMoveBrainPart
|
3
|
from intelligine.simulation.object.brain.part.move.AntMoveBrainPart import AntMoveBrainPart
|
3
|
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_HOME, PHEROMON_DIR_EXPLO, \
|
4
|
- BRAIN_PART_TAKE, BRAIN_PART_PUT, MOVE_MODE_NURSE, PHEROMON_DIR_NONE
|
|
|
|
|
5
|
+ BRAIN_PART_TAKE, BRAIN_PART_PUT, MOVE_MODE_NURSE, PHEROMON_DIR_NONE, BRAIN_PART_ATTACK
|
5
|
from intelligine.cst import PHEROMONE_SEARCHING
|
6
|
from intelligine.cst import PHEROMONE_SEARCHING
|
6
|
from intelligine.cst import BRAIN_PART_MOVE
|
7
|
from intelligine.cst import BRAIN_PART_MOVE
|
7
|
from intelligine.simulation.object.brain.part.transport.AntPutBrainPart import AntPutBrainPart
|
8
|
from intelligine.simulation.object.brain.part.transport.AntPutBrainPart import AntPutBrainPart
|
|
|
|
|
14
|
_brain_parts = {
|
15
|
_brain_parts = {
|
15
|
BRAIN_PART_MOVE: AntMoveBrainPart,
|
16
|
BRAIN_PART_MOVE: AntMoveBrainPart,
|
16
|
BRAIN_PART_TAKE: AntTakeBrainPart,
|
17
|
BRAIN_PART_TAKE: AntTakeBrainPart,
|
17
|
- BRAIN_PART_PUT: AntPutBrainPart
|
|
|
|
|
18
|
+ BRAIN_PART_PUT: AntPutBrainPart,
|
|
|
19
|
+ BRAIN_PART_ATTACK: AttackBrainPart
|
18
|
}
|
20
|
}
|
19
|
|
21
|
|
20
|
def __init__(self, context, host):
|
22
|
def __init__(self, context, host):
|