Example #1
0
 def getId(self):
     if self.brain.work != None:
         return self.__class__.__name__ + "_" + self.brain.work
     return Termite.getId(self)
Example #2
0
 def destroy(self, simulation):
     if self.object_carried != None:
         self.object_carried.setCarriedByNone(self)
     Termite.destroy(self, simulation)
Example #3
0
 def think(self, simulation):
     self.debugCarriedObject(simulation)
     Termite.think(self, simulation)
Example #4
0
 def __init__(self, work=None):
     brain = WorkerBrain(self, work)
     Termite.__init__(self, brain, 2)
Example #5
0
 def __init__(self):
     Termite.__init__(self, 2)
Example #6
0
 def runLifeCycle(self, simulation):
   Termite.runLifeCycle(self, simulation)
   #if self.carried_by == None:
   self.hatch_cyles = self.hatch_cyles - 1
   self.hatchIfReady(simulation)
Example #7
0
 def __init__(self, hatch_object):
   Termite.__init__(self, LarvaBrain(self), 1)
   self.hatch_object = hatch_object
Example #8
0
 def __init__(self, work = None):
   brain = QueenBrain(self, work)
   Termite.__init__(self, brain, 6)