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