def generate(self): self.notify.info('generate') self.notify.info( 'start factory %s %s creation, frame=%s' % (self.lawOfficeId, self.doId, globalClock.getFrameCount())) self.layout = LawOfficeLayout.LawOfficeLayout(self.lawOfficeId) self.startFloor()
def generate(self): self.notify.info('generate') self.notify.info('start factory %s %s creation, frame=%s' % (self.lawOfficeId, self.doId, globalClock.getFrameCount())) DistributedObjectAI.generate(self) self.layout = LawOfficeLayout.LawOfficeLayout(self.lawOfficeId) self.exitEvents = { } for avId in self.avIds: self.exitEvents[avId] = simbase.air.getAvatarExitEvent(avId) self.accept(self.exitEvents[avId], Functor(self.handleAvatarExit, avId)) self.startOffice()